title: Providing DTD file to StAX parser
body: <p>I am using StAX to process a XML file. The document has a DOCTYPE reference to a dtd file </p>
  
  <p><code>&lt;!DOCTYPE onlineDoc SYSTEM "onlineDoc.dtd"&gt;</code></p>
  
  <p>I get the XML from the internet (am streaming it), and the DTD file lies just next to the XML (but - like the xml - on the remote machine).</p>
  
  <p>Now the DTD contains some entity declarations, that are used in the XML i.e.</p>
  
  <p><code>&lt;!ENTITY Ntilde  "&amp;#209;" &gt;&lt;!-- capital N, tilde --&gt;</code></p>
  
  <p>I dont provide the DTD yet, so the StAX parser throws an exception saying that the entity Ntilde cannot be resolved.</p>
  
  <p><strong>Q: how do I provide the DTD file to the parser (it would be best, if it could be a stream from teh internet).</strong></p>