I'm no expert on the XML functions, but post your code and maybe we can 
figure out what's wrong.


Erik



On Thursday, March 21, 2002, at 09:24  PM, Scott Brown wrote:

> Ok - first off, I've found a few... phpbuilder has a nice number of
> references.  But every one I've tried has ignored attributes... either 
> that,
> or I dont understand what I'm doing.
>
> I retrieve from a distant server an XML response to an inquiry:
>
> <?xml version="1.0" ?>
> <response version="1.0" requestid="some-request-identifier">
>   <status code="some-numeric-code">
>     <description>sometext</description>
>   </status>
>   <domain fqdn="fqdn-identidier1">
>     <status code="some-numeric-code1">
>       <description>sometext1</description>
>     </status>
>   </domain>
>   <domain fqdn="fqdn-identidier2">
>     <status code="some-numeric-code2">
>       <description>sometext2</description>
>     </status>
>   </domain>
>   <domain fqdn="fqdn-identidier3">
>     <status code="some-numeric-code3">
>       <description>sometext3</description>
>     </status>
>   </domain>
> </response>
>
> BUT... when I parse this using xml_parse, all I'm getting out is:
>
> Name = RESPONSE  -- Attributes = Array
> Name = STATUS  -- Attributes = Array
> Name = DESCRIPTION  -- Attributes = Array
> Name = DOMAIN  -- Attributes = Array
> Name = STATUS  -- Attributes = Array
> Name = DESCRIPTION  -- Attributes = Array
> Name = DOMAIN  -- Attributes = Array
> Name = STATUS  -- Attributes = Array
> Name = DESCRIPTION  -- Attributes = Array
> Name = DOMAIN  -- Attributes = Array
> Name = STATUS  -- Attributes = Array
> Name = DESCRIPTION  -- Attributes = Array
>
> I cant seem to nail down how to pull the actual attribute values.... 
> does
> anyone know of a tutorial that's going to teach me how to pull those
> attributes of fqdn and code?  I've figured out how to get the 
> DESCRIPTION...
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>





----

Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to