how to remove xml attribute title using boost's ptree? I had one xml, I tried followed code to remove attribute title and save to new xml but failed(new.xml still had title attribute).
xml:
<?xml version="1.0" encoding="utf-8"?>
<tokens title="issues"></tokens>
the code:
ptree pt;
read_xml("C://old.xml", pt);
pt.erase("tokens.<xmlattr>.title"); //try one
pt.erase("tokens.<xmlattr>"); //try two
write_xml("C://new.xml", pt);
is there no any methods for boost ptree to remove attribute?