prototyped some more of XmlParser