Menu

Changing the text of a element on TinyXml

2007-10-17
2013-05-20
  • Tiago Katcipis

    Tiago Katcipis - 2007-10-17

    I navigate trough the xml and i get to the element that i want something like
    <demoVersion>false</demoVersion>
    i want to change the text name from false to true, but the only method i founded on TiXmlNode was getText. i cant found a seter, the only seters i founded was SetValue and SetName but its not what i want. If anyone can help me i would be graithfull.

    sorry for the bad english :-)

     
    • Lee Thomason

      Lee Thomason - 2007-10-17

      The child node of the "demoVersion" TiXmlElement will be a TiXmlText object. You can then change the Value() of the text node, which is currently "false".

      lee

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.