I'm using curl with the following URL in the shell_exec command to get some HTML and XML output into a PHP variable:
If I put that URL into a firefox webpage it outputs this:
A var_dump of the PHP var, however, does not have all the XML shown above --most of it is just not there. I need to get all of the XML shown above into a PHP var and read it raw without regard to the fact that its XML.
BTW, my overall purpose is simply to determine if a topic exists in Wikipedia.
Code:
[URL unfurl="true"]http://en.wikipedia.org/w/api.php?action=query&prop=info&titles=hjflksjhdfuibv[/URL]
If I put that URL into a firefox webpage it outputs this:
Code:
You are looking at the HTML representation of the XML format.
HTML is good for debugging, but probably is not suitable for your application.
See complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
<query>
<normalized>
<n from="hjflksjhdfuibv" to="Hjflksjhdfuibv" />
</normalized>
<pages>
<page ns="0" title="Hjflksjhdfuibv" missing="" />
</pages>
</query>
</api>
A var_dump of the PHP var, however, does not have all the XML shown above --most of it is just not there. I need to get all of the XML shown above into a PHP var and read it raw without regard to the fact that its XML.
BTW, my overall purpose is simply to determine if a topic exists in Wikipedia.