开发者

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().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜