note 69231 added to ref.simplexml
| From: | lukemoscrop at aol dot com | Date: | Mon, 28 Aug 2006 09:31:07 +0000 |
| Subject: | note 69231 added to ref.simplexml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116419@lists.php.net to get a copy of this message | ||
to eho when using name space you need to select the arry from it (xpath turns all of it in to array)
<?php
$logined = $xml->xpath('/root/login/@status');
echo $logined[0];
//to see the the array its self
//use print_r() function
//
print_r($logined);
?>
----
Server IP: 64.71.164.2
Probable Submitter: 172.141.177.23
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/ref.simplexml.php
Edit -- https://master.php.net/note/edit/69231
Del: integrated -- https://master.php.net/note/delete/69231/integrated
Del: useless -- https://master.php.net/note/delete/69231/useless
Del: bad code -- https://master.php.net/note/delete/69231/bad+code
Del: spam -- https://master.php.net/note/delete/69231/spam
Del: non-english -- https://master.php.net/note/delete/69231/non-english
Del: in docs -- https://master.php.net/note/delete/69231/in+docs
Del: other reasons-- https://master.php.net/note/delete/69231
Reject -- https://master.php.net/note/reject/69231
Search -- https://master.php.net/manage/user-notes.php