title: Dumping XML from HttpRequest into a text file
body: <p>I am requesting some XML from Ebay, but the returned XML is too long for VBA debug window, therefore I need to dump the returned XML to a file - being a n00b &amp; grasping in the dark, I could do with someone helping me out with the correct syntax to take the contents of the XMLHttpRequest.responseXML.XML &amp; put it into a file. Here's the code I have (which all works - I just need the line to write to a file)  </p>
  
  <pre><code>Dim fso As Object
  Set fso = CreateObject("Scripting.FileSystemObject")
  Dim oFile As Object
  Set oFile = fso.CreateTextFile("Z:\AccessData\Temp.xml")     
  
  XMLHttpRequest.send (body)
  objxmldoc.loadXML (XMLHttpRequest.responseXML.XML)
  Debug.Print XMLHttpRequest.responseXML.XML ' valid XML showing at this point
  </code></pre>