{
FileInputStream stream = new FileInputStream(getXmlUrl("stax/test.xml"));
XMLEventReader reader = XMLInputFactory.newInstance().createXMLEventReader(stream);
XMLEvent event = reader.nextEvent();
assertTrue("Expected document start, got:" + event.getClass(), event instanceof StartDocument);
event = reader.nextEvent();
assertTrue("Expected characters, got:" + event.getClass(), event instanceof Characters);
}
public void testStreamWriter() throws Exception
{