spliting xml_parser from the rest of the code