Quantcast
Channel: How to dispose or close an instance of XML Document in ASP.NET - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Darin Dimitrov for How to dispose or close an instance of XML...

It depends on which overload of the Save method you are using. If you pass directly a filename as string there shouldn't be issues. If you pass a stream or xmlwriter you need to ensure that it is...

View Article



Answer by driis for How to dispose or close an instance of XML Document in...

XmlDocument, as well as the newer XDocument, are in-memory representations of an XML document, so you don't need to close them. Perhaps you are using an underlying Stream or similar to read the...

View Article

How to dispose or close an instance of XML Document in ASP.NET

There's a problem, wherein a XML Document.Save is resulting in the error the process cannot access the file, because it is being used by another process or the statement an Invalid XML Document.I think...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images