CodeIgniter Forums
How do you read an XML response with colons in tags (namespaces)? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: How do you read an XML response with colons in tags (namespaces)? (/showthread.php?tid=17411)



How do you read an XML response with colons in tags (namespaces)? - El Forum - 04-03-2009

[eluser]spheroid[/eluser]
I'm trying to parse XML response from Whitepages.com API. XML contains namespaces. Begginning of response is like this:

Code:
<?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?


How do you read an XML response with colons in tags (namespaces)? - El Forum - 04-05-2009

[eluser]spheroid[/eluser]
Anyone run into this?