StaxParser { public void parse(File xmlFile) throws XMLStreamException { try (FileInputStream input = new FileInputStream(xmlFile)) { parse(input); } catch (IOException e) { throw new XMLStreamException(e); } } StaxParser(XmlStreamHandler streamHandler); void parse(File xmlFile); void parse(InputStream xmlInput);  }
@Test public void test_XML_with_DTD() throws XMLStreamException { StaxParser parser = new StaxParser(getTestHandler()); parser.parse(getClass().getClassLoader().getResourceAsStream("org/sonar/plugins/python/parser/dtd-test.xml")); }
@Test public void test_XML_with_XSD() throws XMLStreamException { StaxParser parser = new StaxParser(getTestHandler()); parser.parse(getClass().getClassLoader().getResourceAsStream("org/sonar/plugins/python/parser/xsd-test.xml")); }
@Test public void test_XML_with_XSD_and_ampersand() throws XMLStreamException { StaxParser parser = new StaxParser(getTestHandler()); parser.parse(getClass().getClassLoader().getResourceAsStream("org/sonar/plugins/python/parser/xsd-test-with-entity.xml")); }