Anyone know how to iterate through an element’s attributes? I’m getting a bit stuck as xml.getAttributes returns a Range<ofXmlIteratorpugi::xml_attribute_iterator> and I have no idea how to iterate through that!
While we’re at it, how do I remove an element from the xml when I have a reference to that xml node (not the path name “node/subnode/mynode” etc)
There’s no method right now to remove having a node instead of the name, i’m going to add it and it should be on tomorrows nightly and 0.10.1 which will be released soon
Thanks Arturo, for now I’ve made the xml property of ofXml public so I can access the attributes directly from that, but let me know how you get along.