Welcome Guest, Not a member yet? Register   Sign In
How do you read an XML response with colons in tags (namespaces)?
#1

[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?
#2

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




Theme © iAndrew 2016 - Forum software by © MyBB