cTestFiles = null;
}
public Pair<XMLReader, SAXContentHandler> getNewParser() {
XMLReader parser;
SAXContentHandler handler;
try {
parser = XMLReaderFactory.createXMLReader();
List<SequenceType> childSeq = new ArrayList<SequenceType>();
NameTest nt = new NameTest(createUTF8String(""), createUTF8String("data"));
childSeq.add(SequenceType.create(new ElementType(nt, AnyType.INSTANCE, false), Quantifier.QUANT_ONE));
handler = new SAXContentHandler(false, new TreeNodeIdProvider((short) 0), null, null, childSeq);
parser.setContentHandler(handler);
parser.setProperty("http://xml.org/sax/properties/lexical-handler", handler);
return new Pair<XMLReader, SAXContentHandler>(parser, handler);
} catch (Exception e) {
e.printStackTrace();