Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Periodic error with .loadXML

From: "Patrick Jackman" <pjackman@-----.--->
To: 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/ 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent