Part of the EllisLab Network
   
 
How do you read an XML response with colons in tags (namespaces)?
Posted: 03 April 2009 11:19 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  70
Joined  09-26-2007

I’m trying to parse XML response from Whitepages.com API. XML contains namespaces. Begginning of response is like this:

<?xml version="1.0" encoding="UTF-8"?>
<wp:wp xmlns:wp="http://api.whitepages.com/schema/">
  <
wp:result wp:type="success" wp:message=" " wp:code="Found Data"/>
  <
wp:meta>
    <
wp:linkexpiration>2009-04-08</wp:linkexpiration

How can I read using maybe curl and simplexml_load_file with the namespaces?

Profile
 
 
Posted: 05 April 2009 12:46 PM   [ Ignore ]   [ # 1 ]  
Grad Student
Rank
Total Posts:  70
Joined  09-26-2007

Anyone run into this?

Profile