note 47729 deleted from function.simplexml-element-xpath by danbrown
| From: | danbrown@php.net | Date: | Wed, 16 Sep 2009 15:55:09 +0000 |
| Subject: | note 47729 deleted from function.simplexml-element-xpath by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160698@lists.php.net to get a copy of this message | ||
Note Submitter: dummyusr at hm dot com
----
well after testing my conclusion, if you are not interested in namespaces, is:
<?
$sxmltxt=file_get_contents($url);
$sxmltxt=str_replace("xmlns=","a=",$sxmltxt);
$xmltxt=simplexml_load_string($sxmltxt);
?>
then <? $xmltxt->xpath("//node"); ?> will work
not getting that void array