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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
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,
thanks a lot! why didnt i think of that lol! =)