ConformanceTestFile.class.getResourceAsStream("filelist")));
List result = new ArrayList(10);
// We make use of Woodstox' DTDInfo interface here, but we want to be able to use system properties
// to specify the StAX implementation to be used by the tests. Therefore we need to create
// an instance of the Woodstox InputFactory implementation directly.
XMLInputFactory inputFactory = new WstxInputFactory();
inputFactory.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, Boolean.FALSE);
String name;
while ((name = in.readLine()) != null) {
String resourceName = "org/apache/axiom/testutils/conformance/" + name;
boolean hasDTD = false;
boolean hasExternalSubset = false;
boolean hasInternalSubset = false;
boolean hasEntityReferences = false;
try {
XMLStreamReader reader = inputFactory.createXMLStreamReader(new StreamSource(
ConformanceTestFile.class.getResource(name).toString()));
while (reader.hasNext()) {
switch (reader.next()) {
case XMLStreamReader.DTD:
hasDTD = true;