about SimpleXMLElement.
| From: | LKSunny | Date: | Sat, 22 Nov 2008 13:47:44 +0000 |
| Subject: | about SimpleXMLElement. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-283654@lists.php.net to get a copy of this message | ||
<?xml version='1.0' encoding='UTF-8'?>
<array>
<aa:bb a='1' b='2' />
</array>
how can i get a=1 and b=2 in PHP ?
i know SimpleXMLElement->attributes();
however i don't know how to get attributes in tag "aa:bb"
............->array->aa:bb->attributes();
that will error.
Thank You Very Much.