Hi,
Basically yes, an easy way to do it would be to mock out the creation of the document and all other calls made on him.
for example the following code will do that and mock the call to the Load method.
using (RecordExpectations rec = new RecordExpectations())
{
XmlDocument document = new XmlDocument();
document.Load("Some Path");
//... mock the rest of the calls made on document
}
Another way, that may be possible depending on your exact implementation, is to create a "fake" XmlDocument that will contain the exact data you need for the test, and "inject" it instead of the the normally created one.
For example if the class using the document acess is through a "GetDocument" or something similar, you can mock that getter and return the "fake".