title: Usage of com.ctc.wstx.sr.StreamScanner
body: <p>I am using woodstox-core-asl-4.1.0 to filter incoming XML to avoid DOS. But I am unable to find any tutorial to kick start with this API over Internet &amp; even home page of <a href="http://woodstox.codehaus.org/" rel="nofollow">http://woodstox.codehaus.org/</a>
  I have below queries :- </p>
  
  <ol>
  <li>How to pass InputStream that hold XML data ?</li>
  <li>How to use StreamScanner class with configuration to set Maximum Attribute Count ?</li>
  </ol>
  
  <p>Looking for sample example that demonstrate how to use <strong>woodstox API</strong> to take <strong>InputStream</strong> &amp; process it and how to configure it to address this use case <strong>check if Attribute count of any XML element cross threshold</strong>  </p>