Menu

TiXmlElement method for getting text?

n[ate]vw
2005-07-24
2013-05-20
  • n[ate]vw

    n[ate]vw - 2005-07-24

    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

     

Log in to post a comment.