Re: Loading to a DOM object
From: Sivaprasad (sshankaran_at_hotmail.com)
Date: 01/21/05
- Next message: Saga: "Re: DAO on user computers"
- Previous message: Veign: "Re: Using The Same Basic Menu For Several Forms"
- In reply to: Tony Proctor: "Re: Loading to a DOM object"
- Next in thread: Tony Proctor: "Re: Loading to a DOM object"
- Reply: Tony Proctor: "Re: Loading to a DOM object"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 21 Jan 2005 15:41:23 -0600
Tony,
I put this line
xmldocResUpdate.async = False
in the asp page where i load the XML to the DOM object using load().
Its throwing an error "xml cannot be loaded" on the load statement
Thanks
Siva
"Tony Proctor" <tony_proctor@aimtechnology_NoMoreSPAM_.com> wrote in message
news:%23CSg1i8$EHA.4092@TK2MSFTNGP09.phx.gbl...
> The load operation is being performed asynchronously by MSXML Siva. You
> should set:
>
> xmldocResUpdate.async = False
>
> before as the load operation since it defaults to True.
>
> With a small file you may not notice the difference, but a larger file
> (e.g.
> 1MB) would make the problem more visible.
>
> Also, be aware that the '.Load()' method is not thread-safe, and should
> not
> be used in multi-threaded environments like IIS. See
> http://www.google.ie/groups?safe=off&as_umsgid=eT0MdPh4EHA.1292@TK2MSFTNGP10.phx.gbl&lr=lang_en&hl=en
>
> Tony Proctor
>
> "Sivaprasad" <sshankaran@hotmail.com> wrote in message
> news:uNNR1Iz$EHA.1084@tk2msftngp13.phx.gbl...
>> Hello,
>>
>> I am getting an error when i run a code in Windows 2003 server.
>> But if i run the same piece of code on XP or any other OS its working
> fine.
>> I am sending a 1MB xml file to the asp and the asp loads this XML to a
>> DOM
>> object. The error is from ASP on loading the XML to the DOM object.
>> Here is the piece of code to show how i call the asp
>>
>> Dim xmlhttpSendData As MSXML2.XMLHTTP26
>> xmlhttpSendData.open "POST", URL,False
>> xmlhttpSendData.send strXMLData -->> (strXMLData is the xml file)
>>
>>
>> Below is the ASP code
>>
>> Dim xmldocResUpdate
>> Set xmldocResUpdate= Server.CreateObject("MSXML2.DOMDocument")
>> If xmldocResUpdate.load(Request) Then 'After executing this
> line,
>> the control goes to the else statement
>>
>> else
>> "Error message"
>> endif
>>
>>
>> Can anyone help me out.
>>
>> Thanks
>> Siva
>>
>>
>
>
- Next message: Saga: "Re: DAO on user computers"
- Previous message: Veign: "Re: Using The Same Basic Menu For Several Forms"
- In reply to: Tony Proctor: "Re: Loading to a DOM object"
- Next in thread: Tony Proctor: "Re: Loading to a DOM object"
- Reply: Tony Proctor: "Re: Loading to a DOM object"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|