For example:
test.xml
<fruit taste="good">whatever</fruit>
How can I get the name-string of the tag "fruit" (which would be "fruit" of course) using TinyXML?
Use TiXmlElement::Value()
The Value function returns different things based on the type.
Document: filename of the xml file
Element: name of the element
Comment: the comment text
Unknown: the tag contents
Text: the text string
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With