I am trying to get an XML file with a url
http:
but seems to be failing. I tried
However, none of them seem to satisfy a good XML feed if I am either echo or print_r . The ultimate goal is to ultimately parse this data, but getting into a variable is likely to be a good start.
I have attached my code below. This is contained in the loop, and $typeID really gives the correct identifier, as shown above.
$url = 'http://api.eve-central.com/api/marketstat?typeid='.$typeID.'®ionlimit=10000002'; echo $url."<br />"; $xml = new SimpleXMLElement($url); print_r($xml);
I have to say that the other strange thing I see is that when I echo $ url, I get
http:
® is a registered trademark. I'm not sure if this is a “function” in my browser or a “function” in my code
xml php parsing simplexml
mhopkins321
source share