How to parse this xml document?
- by dfjhdfjhdf
Get such a XML document with the help of ajax (var data = request.responseXML;), how do I parse the contacts?:
<?xml version="1.0" encoding="UTF-8"?>
<Alladresses xmlns="http://somedomain.org/doc/2007-08-02/">
<Owner>
<ID>gut74hfowesdfj49fjsifhryh8e8rta3uyhw4</ID>
<Name>Mr.Bin</Name>
</Owner>
<Contacts>
<Person>
<Name>Greg</Name>
<Phone>3254566756</Phone>
</Person>
<Person>
<Name>Smith</Name>
<Phone>342446446</Phone>
</Person>
<Person>
<Name>Yuliya</Name>
<Phone>675445566867</Phone>
</Person>
</Contacts>
</Alladresses>