How to parse this xml document?

Posted by dfjhdfjhdf on Stack Overflow See other posts from Stack Overflow or by dfjhdfjhdf
Published on 2010-05-31T08:59:35Z Indexed on 2010/05/31 9:02 UTC
Read the original article Hit count: 334

Filed under:
|

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>

© Stack Overflow or respective owner

Related posts about Xml

Related posts about AJAX