title: xmltask confused about dtd
body: <p>I'm trying to use xmltask for ant to modify a file in a subdirectory:</p>
  
  <pre><code>project/path/to/file.xml
  </code></pre>
  
  <p>The file refers to a DTD like this:</p>
  
  <pre><code>&lt;!DOCTYPE data SYSTEM "mydtd.dtd"&gt;
  </code></pre>
  
  <p>I don't have the flexibility to change these documents.</p>
  
  <p>This DTD is stored in the same subdirectory, which has always worked fine:</p>
  
  <pre><code>project/path/to/mydtd.dtd
  </code></pre>
  
  <p>Unfortunately, xmltask is trying to locate the dtd in my project's top-level directory, which is where my build file is located, and where I run from:</p>
  
  <p>[xmltask] java.io.FileNotFoundException: /home/me/project/mydtd.dtd (The system cannot find the file specified)</p>
  
  <p>I see in the xmltask documentation that I can correct this with an <strong>xmlcatalog</strong> element to tell it where to look up the file.  But I need to use a <strong>dtd</strong> element, and I can only find examples for this element, not documentation; the examples show only a publicId, and if I understand XML correctly this document does not have one.  I shouldn't need to specify this, anyway, right, since my document already says my DTD is stored locally and shows right where it is?</p>
  
  <p>Why isn't xmltask finding the DTD correctly?  What's the best way to correct or work around this situation?</p>