title: W3C validator doesn't detect error in XML
body: <p>I'm working on a Java XML editor (for Android), and I started including the <a href="http://validator.w3.org/docs/api.html#requestformat" rel="nofollow">W3C Validator API </a>. </p>
  
  <p>I'm doing some tests on several files and stumbled across something weird with the following XML file : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;root&gt;
      &lt;child/&gt;
  </code></pre>
  
  <p>As you can see, it's malformed (the root tag is not closed). When I use the <a href="http://validator.w3.org/" rel="nofollow">W3C Online Validator</a>, it detects the errors and prints </p>
  
  <blockquote>
    <p>Line 3, Column 13: end tag for "root" omitted, but OMITTAG NO was specified</p>
  </blockquote>
  
  <p>But when I use the API, the only detected errors are that the document contains no Doctype and the use of the self-closing tag. </p>
  
  <p>Is there a parameter for the API to detect such an error? </p>