|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Aborting the LoadXML method of XmlDocumentIs there any way to abort the loading and parsing of a large Xml document
using the XmlDocuemnt.LoadXml(filename) method? stoneyowl wrote:
> Is there any way to abort the loading and parsing of a large Xml Are you sure you mean LoadXml()? This method loads from a string...> document using the XmlDocuemnt.LoadXml(filename) method? Cheers,
Show quote
"Joerg Jooss" wrote: You are right - I meant to say XmlDocument.Load("filename")....> 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-re***@joergjooss.de > stoneyowl wrote:
Show quote > If you need to interrupt I/O operations, you cannot use convenience> > "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-re***@joergjooss.de > > > > You are right - I meant to say XmlDocument.Load("filename").... 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, |
|||||||||||||||||||||||