XmlDocument, like the new XDocument, are representations of an XML document in memory, so you do not need to close them.
Perhaps you are using a basic Stream or similar to reading documents, and this is what you need to close? Without additional context it is almost impossible to answer.
source share