Simple XML

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

I have trouble parsing some XML data. I'm doing EPP client

http://www.iana.org/assignments/xml-registry/ns.html

And responses I get uses XML shemas. Header of response
is

 <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
       epp-1.0.xsd">

And then

<resData>
<domain:chkData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd">
<domain:cd>
<domain:name avail="1">bar.com</domain:name>
</domain:cd>
<domain:cd>
<domain:name avail="1">foo.com</domain:name>
</domain:cd>
</domain:chkData>
</resData>


But I cant get to this "cd" If I print_r complete response object it looks like it works, but then when I use
resdata->chkData I got empty object.


Any help would be great

regards

Uros

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux