throws Exception
{
//SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParserFactory spf = new WstxSAXParserFactory();
spf.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
SAXParser sp = spf.newSAXParser();
MyContentHandler h = new MyContentHandler();
sp.setProperty(SAXProperty.LEXICAL_HANDLER.toString(), /*DeclHandler*/h);
// This shouldn't be needed -- nor seems to work for Xerces?
//sp.getXMLReader().setEntityResolver(h);
InputStream in = new FileInputStream(file);