<?php $string = <<<XML <a> <b> <c id='test'>текст</c> <c>вещь</c> </b> </a> XML; $xml = new SimpleXMLElement($string); var_dump($xml->xpath("//a/b/c[0]"));
You have javascript disabled. You will not be able to edit any code.