title: Output XmlDocument as XML
body: <p>I have a function which reads a string to an XMLDocument.</p>
  
  <p>I wish to then output the XML in that document to the screen.</p>
  
  <pre><code>Dim L As String = P.ToString()
  Dim xmlDoc As XmlDocument = New XmlDocument()
  xmlDoc.LoadXml(L)
  Context.Response.Write(xmlDoc)
  </code></pre>
  
  <p>the above does not work, I have also tried using </p>
  
  <pre><code>Return(xmlDoc)
  </code></pre>
  
  <p>with no success. How should I perform this function? Should I not be using XMLDocument?</p>