title: How to filter a StAX XMLStreamReader
body: <p>I need to hook into an API that receives a StAX <code>XMLStreamReader</code> as the input, and filter the supplied stream (change the value of a certain attribute from true to false).</p>
  
  <p>Looked at <code>StreamReaderDelegate</code>, but with that one I'd have to do a lot of coding to keep track of all access paths to the attribute in question.</p>
  
  <p>Is there a better way?</p>
  
  <p>Thanks in advance!</p>