I am trying to delete part of an xml file with php. the links.xml file looks like this:
<?xml version='1.0' encoding='UTF-8'?>
<pages>
<link url="http://example.com">
<title>Who won the world series</title>
</link>
<link url="http://anotherexample.com">
<title>Who won the super bowl</title>
</link>
</pages>
As you can see, I have two different entries in the file above. in my actual file I have many of these. What I want to do is, using php, delete one of the <link>
node from the file. How could I go about doing it?