samudaya Posted August 25, 2008 Share Posted August 25, 2008 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. Link to comment https://forums.phpfreaks.com/topic/121182-delete-element-in-xml-file-by-using-php/ Share on other sites More sharing options...
ratcateme Posted August 25, 2008 Share Posted August 25, 2008 you need to edit the way you have the array being used in your php script then turn it into xml and completely rewrite the file. Scott. Link to comment https://forums.phpfreaks.com/topic/121182-delete-element-in-xml-file-by-using-php/#findComment-624702 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.