added comments to the XmlParser class