Например:
test.xml
<fruit taste="good">whatever</fruit>
Как получить строку имени тега "fruit" (которая, конечно, будет "fruit"), используя TinyXML
Использование 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