I want to use the dom removeChild function in php to remove everything between a tag.
my xml looks like
<root>
<element>text</element>
<remove>
text
<morexml>text</morexml>
</remove>
</root>
Now I want to remove the tag including its entire inside. How do I do this? I do not have a clue. I am trying to use the only dom function i found: removeChild.
When removed it has to look like this:
<root>
<element>text</element>
</root>
Is there a php dom function to do this? I can not find it on google or stackoverflow.