added methods to xml_parser