All XML-parsing-related stuff refactured to new XmlParser class