Update to XML Parsing

Fixed bug in XML Parsing