Simple XML

From: Date: Thu, 03 Mar 2005 10:31:24 +0000
Subject: Simple XML
Groups: php.general 
Request: Send a blank email to php-general+get-209894@lists.php.net to get a copy of this message
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

« previous php.general (#209894) next »