Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

XPathDocument and IDisposable

$
0
0
Hello,

I Have a large XML file where i use Xpath for retrieve some data.

Now that works just fine. But my memory is increasing each time i open a new XML file.

Is it possible to dispose the XPathDocument ?

It is NOT possible to somthing like this:

XPathDocument XDoc = new XPathDocument([Location]);

........ Searching in document ....

((IDisposable)XDoc).Dispose();

Is there a way to decrease my memory ?

Please help me out and ... Thank you for your time.

Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>