I have a xml like this bellow,how can I read the elements and attributes?
I can find a guide.
Dimis
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
<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"> 
    <response> 
        <result code="1000"> 
            <msg>Command completed successfully</msg> 
        </result> 
        <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="0">dimis.gr</domain:name> 
                    <domain:reason>In Use.</domain:reason> 
                </domain:cd> 
            </domain:chkData> 
        </resData> 
        <extension> 
            <extdomain:resData xmlns:extdomain="urn:ics-forth:params:xml:ns:extdomain-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ics-forth:params:xml:ns:extdomain-1.0 extdomain-1.0.xsd"> 
                <extdomain:comment ref="dimis.gr">In Use.</extdomain:comment> 
            </extdomain:resData> 
        </extension> 
        <trID> 
            <clTRID>ABC:ics-forth:1079698712682</clTRID> 
            <svTRID>20090603-113421576-577-gr</svTRID> 
        </trID> 
    </response> 
</epp>