![]() |
Remove element from xml file
How do I remove a element completly from a xml file?
Right now I use this code: Code:
QDomNode n = root.firstChild(); before: <exercise status="ok" muscle="Biceps" weight="0" group="Arms" pic1="" pic2="" name="Name9" info="info"/> after: <exercise/> So how do I remove the tagname? |
Re: Remove element from xml file
Solved by doing root.removeChild(n);
|
All times are GMT. The time now is 09:15. |
vBulletin® Version 3.8.8