If you have done much debugging with XML data, you know how difficult it can be to look at a System.Xml.XmlDocument.  They don’t just show up in the debugger as XML.  This is where this command comes into play.  It will take a XmlDocument as input and will print out the entire XML for that document.

Note: It does not print out any XmlComments, XmlDeclarations, or other things at the top of the document.

The output from this command looks like:


As you can see, this makes it much easier to look at a System.Xml.XmlDocument in the debugger.