Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / February 2006



Tip: Looking for answers? Try searching our database.

For Deleting child

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pramod - 28 Feb 2006 12:32 GMT
will u suggest me how to delete child from node. i have a xml file .
There are four subnodes in the Contact element i have to delete
subnodes value from file

thank in advance
Thomas 'PointedEars' Lahn - 28 Feb 2006 15:44 GMT
> will u suggest me how to delete child from node. [...]

If you want to address only "u", send e-mail to "u", do not post to this
public newsgroup.  Maybe he/she will also take time to understand some of
your statements as question, and some as statements.

PointedEars
Lasse Reichstein Nielsen - 28 Feb 2006 17:03 GMT
> 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
Signature

Lasse Reichstein Nielsen  -  lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
 'Faith without judgement merely degrades the spirit divine.'

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.