2
的test.xml
<fruit taste="good">whatever</fruit>
我怎样才能标签“果”(这是当然的“果”)使用TinyXML的名称字符串?
的test.xml
<fruit taste="good">whatever</fruit>
我怎样才能标签“果”(这是当然的“果”)使用TinyXML的名称字符串?
价值函数根据类型不同的事情。
Document: filename of the xml file
Element: name of the element
Comment: the comment text
Unknown: the tag contents
Text: the text string
忘了提,如果使用STL,你也可以使用[TiXmlNode :: ValueStr()](http://www.grinninglizard.com/tinyxmldocs/classTiXmlNode.html#74bda074919e4a5e08d700204793f898),返回' const std:string&'而不是'const char *'。它也更高效。 – Sam