<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <script type="text/javascript; e4x=1">
      <![CDATA[

var x = new XML('<Envelope/>');

correct =
<Envelope 
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:stock="http://mycompany.com/stocks"
    soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <Body>
        <stock:GetLastTradePrice>
            <stock:symbol>DIS</stock:symbol>
        </stock:GetLastTradePrice>
    </Body>
</Envelope>;

var x = new XML('<Envelope/>');

alert(correct);

var doc = new XML(document.documentElement);
alert(doc);

      ]]>
    </script>
  </head>
</html>
