I am using PHP 4.4.7. Can anyone please provide me an example of how to transform the XML returned from WhitePages into HTML data for display in a web browser.
Please note that I do not have CURL module installed.
When I try to use white pages from my outlook, I type in my search information, then a prompt comes up and says "Failed to load the DOM from the xml document". I am looking for an easy fix. A little help please...
The code examples on http://code.google.com/p/php-whitepages are PHP5 only. One of the main reasons for this was that the PHP4 has some specific issues with using namespaced XML, which is what the WhitePages API XML uses. As far as I know these issues are not insurmountable but they are there.
In general XML handling was drastically changed between PHP4 and PHP5, I would start by using DOM_XML and file_get_contents, though I cannot honestly remember if file_get_contents works without curl installed.
You will need to refer to documentation or download the xml and view it to figure out the namespacing and how DOM_XML references it.
I need to know this as well. The XML is being returned ..but on a link. It would be great if I would know how to display this data on an HTML. One of the ways this could have been possible is to have White pages return an xml file , and not just the data in the xml format. Would really appreciate if someone can provide any inputs on the same.
Hi,
I am using PHP 4.4.7. Can anyone please provide me an example of how to transform the XML returned from WhitePages into HTML data for display in a web browser.
Please note that I do not have CURL module installed.
Thanks in advace.
Bharath
Message edited by bharath21 2 months ago
Tina Sanders – 4 years ago
I keep getting "failed to load the DOM from the xml document
Tina Sanders – 4 years ago
When I try to use white pages from my outlook, I type in my search information, then a prompt comes up and says "Failed to load the DOM from the xml document". I am looking for an easy fix. A little help please...
Dan_WhitePages – 4 years ago
Hi Tina,
It sounds like you are trying to use one of our example applications. Is that correct?
If so, please be aware they are meant as example code for developers. Even so, I'll ask the developer who built this app to take a look.
nextwave – 4 years ago
Any response on how to convert this to HTML ?
BaldPenguin – 4 years ago
The code examples on http://code.google.com/p/php-whitepages are PHP5 only. One of the main reasons for this was that the PHP4 has some specific issues with using namespaced XML, which is what the WhitePages API XML uses. As far as I know these issues are not insurmountable but they are there.
In general XML handling was drastically changed between PHP4 and PHP5, I would start by using DOM_XML and file_get_contents, though I cannot honestly remember if file_get_contents works without curl installed.
You will need to refer to documentation or download the xml and view it to figure out the namespacing and how DOM_XML references it.
ayindri.b – 2 years ago
I need to know this as well. The XML is being returned ..but on a link. It would be great if I would know how to display this data on an HTML. One of the ways this could have been possible is to have White pages return an xml file , and not just the data in the xml format. Would really appreciate if someone can provide any inputs on the same.
Donnie Dotson – 2 months ago
It also happens to my web design for small businesses website. I think many have complaining for this issue, this is not usual.