Why is there no TiXmlAttribute::Parent() function?
What I want to do is let the user select Xml nodes using XPath expressions (using the TinyXPath lib btw), and then let them specify an action to execute, like delete. The XPath expression might refer to an attribute, in which case only the TiXmlAttribute* is available, but in order to delete it, I need to call RemoveAttribute on the parent Element...
How can I solve this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Why is there no TiXmlAttribute::Parent() function?
What I want to do is let the user select Xml nodes using XPath expressions (using the TinyXPath lib btw), and then let them specify an action to execute, like delete. The XPath expression might refer to an attribute, in which case only the TiXmlAttribute* is available, but in order to delete it, I need to call RemoveAttribute on the parent Element...
How can I solve this?