title: Why I am Not able to load XML in VBScript?
body: <p>I have a XML in a string. When I try to load this XML using <code>Msxml2.DOMDocument.6.0</code> object's <code>Load</code> method in VBScript, It always returns false, and the XML is valid XML.</p>
  
  <p>Here is the XML:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd"&gt;
  &lt;cXML&gt;
    jsgdjgs
  &lt;/cXML&gt;
  </code></pre>
  
  <p>Here is the VBScript code:</p>
  
  <pre class="lang-vb prettyprint-override"><code>payloadXML = "&lt;?xml version=""1.0"" encoding=""UTF-8""?&gt;&lt;!DOCTYPE cXML SYSTEM ""http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd""&gt;&lt;cXML&gt;jsgdjgs&lt;/cXML&gt;"
  Set xmlDoc = Server.CreateObject("Msxml2.DOMDocument.6.0")
  xmlLoadSuccess = xmlDoc.load(payloadXML)
  
  If Not xmlLoadSuccess Then
      Response.Write(xmlLoadSuccess)
  End If
  </code></pre>
  
  <p>Could anyone guide me what I am doing wrong? By the same method I am able to load XML like this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;abc&gt;
  &lt;firstName&gt;jgg&lt;/firstName&gt;
  &lt;lastName&gt;hfgyhg&lt;/lastName&gt;
  &lt;/abc&gt;
  </code></pre>