Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如:
测试.xml
<fruit taste="good">whatever</fruit>
如何使用 TinyXML 获取标签“fruit”(当然是“fruit”)的名称字符串?
使用TiXmlElement::Value()
Value 函数根据类型返回不同的东西。
Document: filename of the xml file Element: name of the element Comment: the comment text Unknown: the tag contents Text: the text string