如何获取标签之间的内容
<name> </name> and <mode> </mode>
<news>
<name>Enter</name>
<actions>
<mode>me</mode>
</actions>
</news>
最佳答案
你真的应该看看优秀的 documentation TinyXML 以及 the tutorial .但是,您正在寻找的是 GetText()
TiXmlElement 的方法。
一旦到达“name”或“mode”元素,就可以使用 GetText()
获取这些标签之间的字符串。
关于c++ - 使用 TinyXML 获取标签之间的内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9464851/