title: How do I view the contents of an IXMLDOMElementPtr when building an XML file?
body: <p>I'm using IXMLDOM in MSXML 6 to build an XML file in a C++ MFC application.  Is there a way to see the contents of the xml document while it is in memory?  </p>
  
  <p>For example, an XPATH query is failing about halfway through creating the file.  How would I view the entire contents of the xml doc?</p>
  
  <p>Thanks!</p>