Menu

how to delete an element in tinyxml

tulip0205
2007-10-10
2013-05-20
  • tulip0205

    tulip0205 - 2007-10-10

    hi there!

    i'm new to tinyxml so i was hoping that you could help me on how to delete an element in a document. i tried Clear() but this only deletes the child of an element and not the element itself. there's another function but it is a protected function (ClearThis()).

    thanks a lot!

     
    • eninyo

      eninyo - 2007-10-10

      i think you need to go up to the father of the element you want to delete and then delete the element you want as a child which you know how.

      good luck,

       
    • tulip0205

      tulip0205 - 2007-10-11

      thanks a lot! why didnt i think of that lol! =)

       

Log in to post a comment.