Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Periodic error with .loadXML [Thread Next] Re: Periodic error with .loadXMLTo: NULL Date: 6/13/2008 11:55:00 AM Thanks for your suggestions Martin. They are much appreciated. Patrick. "Martin Honnen" <mahotrash@y...> wrote in message news:eTrVATUzIHA.4816@T...... Patrick Jackman wrote: > 99 If Not oDoc.loadXML(oXMLHTTP.responsexml.xml) Then > 100 strError = "An unexpected error occured. LoadXML failed. " > 101 Error cErrInTUResponse If you already have responseXML then there is no need at all to use loadXML. Simply check oXMLHTTP.responseXML.parseError.errorCode/reason to find any errors in the XML you have received. And I don't know much about VBA and stuff like DoEvents but usually with MSXML and XMLHTTP you would either make an asynchronous request by passing True as the third argument of the open method or you would make a synchronous request by passing False as the third argument. Then, to process the response in the case of an asynchronous request you set up an onreadystatechange event handler on the XMLHTTP object. In the case of a synchronous request the send call block and you can process the response status after the send call. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
