Package org.apache.vxquery.xmlparser

Examples of org.apache.vxquery.xmlparser.SAXContentHandler


        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();
View Full Code Here

TOP

Related Classes of org.apache.vxquery.xmlparser.SAXContentHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.