Can I access attributes of returned xml
| From: | neko | Date: | Mon, 09 Feb 2004 09:35:25 +0000 |
| Subject: | Can I access attributes of returned xml | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-1339@lists.php.net to get a copy of this message | ||
Hi guys,
A soap call I'm making to a server returns XML to me with some data stored as attributes of an xml tag, rather than sub-elements. Now when soap returns the response, it's been converted into a PHP structure (arrays), but It seems like it doesn't cater for attributes, such as below:
<extras>
<extra status=”InActive” queue=”CPSPDQueue”>
<planid>EXTRA PLANID GOES HERE</planid>
</extra>
<extra status=”Active” queue=””>
<planid>EXTRA PLANID GOES HERE</planid>
</extra>
(I need status and queue attributes).
I'm using RC2 at the moment. Is there a way to get access to that data?
thanks,
neko