title: Help the Java SAX parser to understand bad xml
body: <p>I am parsing XML returned from a website but sadly it is slightly malformed. I am getting XML like:</p>
  
  <pre><code>&lt;tag attrib="Buy two for &amp;pound;1" /&gt;
  </code></pre>
  
  <p>Which, I am informed, is invalid because <code>&amp;pound;</code> is an HTML character, not an XML character and definitely cannot appear in an attribute.</p>
  
  <p>What can I do to fix this, assuming I cannot tell the website to obey the rules? I am considering using a <code>FilterInputStream</code> to filter the arriving data before it gets to the SAX parser but this seems over the top.</p>