"pramod" <ln********@gmail.com> writes:
will u suggest me how to delete child from node.
PLEASE write entire words. Phonetic abbreviations are significantly
harder to read for non-native English speakers.
i have a xml file . There are four subnodes in the Contact element
i have to delete subnodes value from file
I can't tell you how to delete something in the file without knowing
what file operations you can perform and how. Since you are posting in
a Javascript group, I am guessing that you want to use W3C DOM for
manipulating the XML. If you read the file into a DOM structure, you
can remove a child node from another node by using the (unsurpricingly
named) "removeChild" method, i.e.:
parentNode.removeChild(childNode);
You will then have to write the DOM to a file again.
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'