<?php $xml = "<root><a><aa></aa></a></root>"; $xml = simplexml_load_string($xml); foreach ($xml as $tag => $child) { unset($xml->{$tag}); }
You have javascript disabled. You will not be able to edit any code.