Re: Loading to a DOM object

From: Sivaprasad (sshankaran_at_hotmail.com)
Date: 01/21/05


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
>>
>>
>
>



Relevant Pages

  • Re: caching large XML files in an ASP.net application
    ... first of all is all the data changing in the xml file? ... > the solution im thinking of is to have a thread accessible to all the ASP ... > unnecessary load on to the webserver? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: problem when try to store xmldom into hashmap
    ... thanks for reply, you got exactly, am doing the the same i load every time ... the same dom object and that was creating problem. ... > XML fragments... ... > Kim Gräsman ...
    (microsoft.public.win32.programmer.ole)
  • Re: problem with XML DOM load command
    ... with invalid XML and I'm getting suspicious that something in a QFE ... has busted MSXML and its exception processing. ... © 2003 Microsoft Corporation. ... >> So this exception is on your main thread where you're doing the load. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Word Searching XML
    ... which will be somewhat interactive and can not expected to load ... we are trying to search XML node and its ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: Saving program state in executable
    ... UML or OWL data using XML's DOM model, it takes quite a while to load ... The overhead is mostly the textprocessing and parsing of the XML models. ... 'const' record, or set of records, at compile time, and that might be ... knows it is one block of memory (assuming it doesn't contain e.g. ...
    (comp.lang.pascal.misc)