parserFactory.setNamespaceAware(true);
// Now create a SAXParser object
try{
SAXParser parser = parserFactory.newSAXParser(); //May throw exceptions
BibTeXMLHandler handler = new BibTeXMLHandler();
// Start the parser. It reads the file and calls methods of the handler.
parser.parse(stream, handler);
// When you're done, report the results stored by your handler object
bibItems = handler.getItems();
}catch (javax.xml.parsers.ParserConfigurationException e1){
e1.printStackTrace();