Nov 27, 2008 15:33
Ну и кто они(может я?) после этого?!
...
print_r($dataObj->xpath('contact'));
$dataObj = new SimpleXMLElement($dataObj->asXML());
print_r($dataObj->xpath('contact'));
Output:
X-Powered-By: PHP/5.2.0
Content-type: text/html
Array
(
)
Array
(
[0] => SimpleXMLElement Object
(
[@attributes] => Array
(
[type] => phone
[comment] => доп.175, по будням с 9.00 до 18.00
)
[0] => 8-800-2000-383
)
)