Delete element in xml file by using php

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
samudaya
Forum Newbie
Posts: 2
Joined: Thu Aug 21, 2008 3:05 am

Delete element in xml file by using php

Post by samudaya »

Hi,
I have a application which has a xml file reading and wrting. I want
to remove some element in xml file by using php.


<?xml version="1.0" encoding="UTF-8"?>
<element1>
<subelement1>aa</subelement1>
<subelement2>aa</subelement2>
</element1>


How to remove "<subelement1>aa</subelement1>" that elements and save
back to same or other xml file.
Post Reply