private static XMLReader createReader() throws IOException {
  XMLReader reader=null;
  try {
    reader=XMLReaderFactory.createXMLReader();
  }
 catch (  SAXException e) {
    try {
      reader=XMLReaderFactory.createXMLReader("org.apache.crimson.parser.XMLReaderImpl");
    }
 catch (    SAXException se) {
      throw new IOException(se.toString());
    }
  }
  return reader;
}

private static XMLReader createReader ( ) throws IOException { XMLReader reader = null ; try { reader = XMLReaderFactory . createXMLReader ( ) ; } catch ( SAXException e ) { try { reader = XMLReaderFactory . createXMLReader ( "org.apache.crimson.parser.XMLReaderImpl" ) ; } catch ( SAXException se ) { throw new IOException ( se . toString ( ) ) ; } } return reader ; }
creates the xml reader to use . note that in 1 . 4 jre ' s , the reader class wasn ' t defined by default , but in 1 . 5 + it is .
