delete a node in xml

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

delete a node in xml

Post 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?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: delete a node in xml

Post by requinix »

Sure.

How are you reading the XML? ...Or have you not gotten that far yet?
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

Re: delete a node in xml

Post 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
Post Reply