Parsing XML Web Result
I am trying to get distance data from MapQuest using the ParseXmlFromURL method.
The URL I am using works as it returns an XML string, if I type it into my browser. However using the following line of code - generates an exception:
Local string &sMapQuest_URL;
Local XmlDoc &inXMLDoc;
Local boolean &ret;
&sMapQuest_URL = "myURL"
&inXMLDoc = CreateXmlDoc("");
&ret = &inXMLDoc.ParseXmlFromURL(&sMapQuest_URL);
Here is my error:
XML parser error CreateXmlDoc Fatal Error: at file line: 0 column: 0 message: An exception occurred! Type:NetAccessorException, Message:Could not open file: http://open.mapquestapi.com/directions/v2/alternateroutes?key=mysecretkey&from=11069 Bailey Road,RavennaFatal