Page 1 of 1

delete a node in xml

Posted: Sat Jan 17, 2009 2:44 am
by susrisha
Hi all..
I have an xml file

Code: Select all

 
<root>
<node id="1">
<param>k</param>
</node>
<node id="2">
<param>ls</param>
</node>
</root>
 
using php, is there any way i can remode the node with id=2 from the xml file?

Re: delete a node in xml

Posted: Sat Jan 17, 2009 4:19 am
by requinix
Sure.

How are you reading the XML? ...Or have you not gotten that far yet?

Re: delete a node in xml

Posted: Sat Jan 17, 2009 7:58 am
by susrisha
Well this problem of mine is solved. Cannot post the code coz it can be used only specifically to my requirements.
Used DOM functionalities.
thanks for the help