开发者

How to get parent node of element using tinyxml

开发者 https://www.devze.com 2023-01-05 12:50 出处:网络
Is there a way to get 开发者_开发问答a parent node from a TiXmlElement? For example... TiXmlElement *parent = child->ParentElement( \"someName\" );

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

精彩评论

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

关注公众号