
February 17th, 2013, 02:20 PM
|
|
Registered User
|
|
Join Date: Oct 2012
Posts: 7
Time spent in forums: 6 h 49 m 37 sec
Reputation Power: 0
|
|
|
How do I delete a node from an xml document?
I'm using the Xml.VerySimple unit and I have some trouble removing nodes from my document.
For example: I want to remove the 3rd node and I write
Document.Root.ChildNodes[2].free (or .destroy).
This removes the contents of the node (and all its children), but leaves a "< />", an empty node, on that row and messes up my node count.
What should I do in order to completely remove a node?
Thank you for your help.
|