add xml_parser
Fixing some bugs in xml parser