"com.bea.xml.stream.MXParserFactory");
System.setProperty("javax.xml.stream.XMLEventFactory",
"com.bea.xml.stream.EventFactory");
XMLInputFactory factory = XMLInputFactory.newInstance();
XMLEventAllocator allocator = new StaticAllocator();
factory.setEventAllocator(allocator);
XMLEventReader r =
factory.createXMLEventReader(new FileReader(filename));
while(r.hasNext()) {
XMLEvent e = r.nextEvent();