例如:
的test.xml
<fruit taste="good">whatever</fruit>
如何使用TinyXML获取标签“fruit”的名称字符串(当然是“水果”)?
答案 0 :(得分:11)
Value函数根据类型返回不同的东西。
Document: filename of the xml file
Element: name of the element
Comment: the comment text
Unknown: the tag contents
Text: the text string