<?php $xml = simplexml_load_string('<doc><str name="author">Bob</str></doc>'); $result = $xml->xpath("/doc/str[@name='author']")[0]; var_dump($result->asXML());
You have javascript disabled. You will not be able to edit any code.