views:

32

answers:

1

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?

+1  A: 

TinyXML's TiXmlElement is derived from TiXMLNode which contains a method called Parent().

random