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;