Am I overlooking a method to grab the text of an XmlElement?
Right now, I am getting the child of the element, making sure it's of type TEXT, and then getting it's value.
Please correct if I'm wrong, but don't XML tags usually have only one text element inside of them, eg. <xmlelement>Text</xmlelement>?
It would be nice to be able to call something TiXmlElement::Text() and get back the text, or NULL if there is no text within the tags.
tia,
-natevw
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Am I overlooking a method to grab the text of an XmlElement?
Right now, I am getting the child of the element, making sure it's of type TEXT, and then getting it's value.
Please correct if I'm wrong, but don't XML tags usually have only one text element inside of them, eg. <xmlelement>Text</xmlelement>?
It would be nice to be able to call something TiXmlElement::Text() and get back the text, or NULL if there is no text within the tags.
tia,
-natevw
I think this discussion is what you're after:
https://sourceforge.net/forum/forum.php?thread_id=1280165&forum_id=172103
HTH!
Ellers