title: How to retrieve XML DOM in IE?
body: <p>I have an HTML form and iframe like this:</p>
  
  <pre><code>&lt;form id="frmUpload" target="ifrTarget" action='http://....asmx/SampleMethod'&gt;
    &lt;input name="title" /&gt;&lt;br /&gt;
    ...
    &lt;input type="submit"/&gt;
  &lt;/form&gt;
  &lt;iframe id="ifrTarget" name="ifrTarget"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Action attribute points to my ASP.NET web service. When the form is submitted, the IFRAME gets filled with the resulting XML. I need to retrieve DOM of this XML document. So far my code looks like this:</p>
  
  <pre><code>var iframe = document.getElementById("ifrTarget");
  var root = iframe.contentWindow.document.documentElement;
  </code></pre>
  
  <p>This works perfectly in FireFox, Chrome and Opera browsers. But it doesn't work in IE 6 &amp; 7. As far as I understand, in IE I get DOM of the HTML document which IE builds internally to display syntax highlighting for XML. What I need is to get underlying XML unmodified. Is it achievable in IE?</p>
  
  <hr>
  
  <p>There is a strong reason to stick with form and iframe rather than call web service via AJAX. Unfortunately, AJAX is not an option for me in this particular case.</p>