{
XInterface oFacc = (XInterface)xMSF.createInstance(
"com.sun.star.comp.ucb.SimpleFileAccess");
XSimpleFileAccess xFacc = (XSimpleFileAccess)UnoRuntime.queryInterface
(XSimpleFileAccess.class, oFacc) ;
XInputStream oIn = xFacc.openFileRead(fileURL) ;
XInterface oParser = (XInterface)xMSF.createInstance(
"com.sun.star.xml.sax.Parser");
XParser xParser = (XParser) UnoRuntime.queryInterface(XParser.class, oParser);
xParser.setDocumentHandler(handler) ;
InputSource inSrc = new InputSource() ;
inSrc.aInputStream = oIn ;
xParser.parseStream(inSrc) ;
oIn.closeInput();
}