How to get parent node of element using tinyxml
Is there a way to get 开发者_开发问答a parent node from a TiXmlElement? For example...
TiXmlElement *parent = child->ParentElement( "someName" );
If you can't do this in tinyxml, are there any other xml parsers that allow this?
TinyXML's TiXmlElement is derived from TiXMLNode which contains a method called Parent().
精彩评论