I want to use the dom removeChild function in php to remove everything between a tag.my xml looks like\[code\]<root> <element>text</element> <remove> text <morexml>text</morexml> </remove></root>\[/code\]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:\[code\] <root> <element>text</element> </root>\[/code\]Is there a php dom function to do this? I can not find it on google or stackoverflow.