title: java.net.MalformedURLException: no protocol
body: <p>I am getting Java exception like: </p>
  
  <pre><code>java.net.MalformedURLException: no protocol
  </code></pre>
  
  <p>My program is trying to parse an XML string by using:</p>
  
  <pre><code>Document dom;
  DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
  DocumentBuilder db = dbf.newDocumentBuilder();
  dom = db.parse(xml);
  </code></pre>
  
  <p>The XML string contains:</p>
  
  <pre><code>String xml = "&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;"+
      "   &lt;s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"&gt;"+
      "       &lt;s:Header&gt;"+
      "           &lt;ActivityId CorrelationId=\"15424263-3c01-4709-bec3-740d1ab15a38\" xmlns=\"http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics\"&gt;50d69ff9-8cf3-4c20-afe5-63a9047348ad&lt;/ActivityId&gt;"+
      "           &lt;clalLog_CorrelationId xmlns=\"http://clalbit.co.il/clallog\"&gt;eb791540-ad6d-48a3-914d-d74f57d88179&lt;/clalLog_CorrelationId&gt;"+
      "       &lt;/s:Header&gt;"+
      "       &lt;s:Body&gt;"+
      "           &lt;ValidatePwdAndIPResponse xmlns=\"http://tempuri.org/\"&gt;"+
      "           &lt;ValidatePwdAndIPResult xmlns:a=\"http://schemas.datacontract.org/2004/07/ClalBit.ClalnetMediator.Contracts\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\"&gt;"+
      "           &lt;a:ErrorMessage&gt;Valid User&lt;/a:ErrorMessage&gt;"+
      "           &lt;a:FullErrorMessage i:nil=\"true\" /&gt;"+
      "           &lt;a:IsSuccess&gt;true&lt;/a:IsSuccess&gt;"+
      "           &lt;a:SecurityToken&gt;999993_310661843&lt;/a:SecurityToken&gt;"+
      "           &lt;/ValidatePwdAndIPResult&gt;"+
      "           &lt;/ValidatePwdAndIPResponse&gt;"+
      "       &lt;/s:Body&gt;\n"+
      "   &lt;/s:Envelope&gt;\n";
  </code></pre>
  
  <p>Any suggestions about what is causing this error? </p>