Re: Aborting the LoadXML method of XmlDocument
- From: "Joerg Jooss" <news-reply@xxxxxxxxxxxxx>
- Date: Tue, 20 Dec 2005 13:54:40 -0800
stoneyowl wrote:
>
>
> "Joerg Jooss" wrote:
>
> > stoneyowl wrote:
> >
> > > Is there any way to abort the loading and parsing of a large Xml
> > > document using the XmlDocuemnt.LoadXml(filename) method?
> >
> > Are you sure you mean LoadXml()? This method loads from a string...
> >
> > Cheers,
> > --
> > http://www.joergjooss.de
> > mailto:news-reply@xxxxxxxxxxxxx
> >
>
> You are right - I meant to say XmlDocument.Load("filename")....
If you need to interrupt I/O operations, you cannot use convenience
methods like XmlDocument.Load(). Use asynchronous I/O to load the XML
file from a file stream, or try loading the file on a worker thread
(which doesn't make it interruptible per se, but at least doesn't block
your man thread).
Cheers,
--
http://www.joergjooss.de
mailto:news-reply@xxxxxxxxxxxxx
.
- References:
- Re: Aborting the LoadXML method of XmlDocument
- From: Joerg Jooss
- Re: Aborting the LoadXML method of XmlDocument
- Prev by Date: What about .NET ObjectSpaces ???
- Next by Date: System.TimeZone interface unusable?
- Previous by thread: Re: Aborting the LoadXML method of XmlDocument
- Next by thread: Windows Service using ASP .NET
- Index(es):
Relevant Pages
|