So I want to delete a child from an XML string where an attribute is a specific value.
For Example:
<xml>
<note url="http://google.com">
Values
</note>
<note url="http://yahoo.com">
Yahoo Values
</note>
</xml>
So how would I delete the note node with attribute http://yahoo.com as the string for the URL?
I'm trying to do this in PHP Simple XML
Oh and also I'm loading it in as an XML Object with the SimpleXML_Load_String function like this:
$notesXML = simplexml_load_string($noteString['Notes']);