I have a xml file like:
<file>
<data>
<input name="id">1</input>
<input name="name">Mike</input>
</data>
<data>
<input name="id">2</input>
<input name="name">Andree</input>
</data>
</file>
How to delete element:data
in value element:input
1 by attribute:id
I've read this example php-delete-xml-element but this do not have the same level of depth that I am looking for.
NB: I'm hoping to use DOMDocument