title: TestNG XML not valid
body: <p>I have some generated TestNG XMLs that worked for a long time, but recently they are invalid when I run them through Java's SAXParser and through <a href="http://www.xmlvalidation.com/" rel="nofollow noreferrer">http://www.xmlvalidation.com/</a></p>
  
  <p>Example generated XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"&gt;
  &lt;suite thread-count="1" verbose="2" name="TestNG Forum" parallel="tests"&gt;
    &lt;test name="TestNG Test0" preserve-order="false"&gt;
      &lt;parameter name="device" value="58f56054954b6b3e323a3405fc49023eb1569a98"/&gt;
      &lt;packages&gt;
        &lt;package name="output"/&gt;
      &lt;/packages&gt;
    &lt;/test&gt; &lt;!-- TestNG Test0 --&gt;
  &lt;/suite&gt; &lt;!-- TestNG Forum --&gt;
  </code></pre>
  
  <p>Example XML from TestNG's site @ <a href="http://testng.org/doc/documentation-main.html" rel="nofollow noreferrer">http://testng.org/doc/documentation-main.html</a></p>
  
  <pre><code>&lt;!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" &gt;
  
  &lt;suite name="Suite1" verbose="1" &gt;
    &lt;test name="Nopackage" &gt;
      &lt;classes&gt;
         &lt;class name="NoPackageTest" /&gt;
      &lt;/classes&gt;
    &lt;/test&gt;
  
    &lt;test name="Regression1"&gt;
      &lt;classes&gt;
        &lt;class name="test.sample.ParameterSample"/&gt;
        &lt;class name="test.sample.ParameterTest"/&gt;
      &lt;/classes&gt;
    &lt;/test&gt;
  &lt;/suite&gt;
  </code></pre>
  
  <p>Why did these XMLs suddenly stop being valid?  Is it an error in the dtd hosted by testng?  Did the dtd suddenly change?</p>
  
  <p>EDIT:
  XML parsing error:</p>
  
  <pre><code>1:  3   The markup declarations contained or pointed to by the document type declaration must be well-formed.
  </code></pre>