Jump to content

Delete element in xml file by using php


samudaya

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.