Package net.sf.saxon.evpull

Examples of net.sf.saxon.evpull.PullEventSource


                bridge.setXMLStreamReader((XMLStreamReader)value);
                PipelineConfiguration pipe = config.makePipelineConfiguration();
                bridge.setPipelineConfiguration(pipe);
                Builder b = new TinyBuilder();
                b.setPipelineConfiguration(pipe);
                new Sender(pipe).send(new PullEventSource(bridge), b, null);
                NodeInfo node = b.getCurrentRoot();
                b.reset();
                return node;
            } else {
                throw new XPathException("Java object cannot be converted to an XQuery value");
View Full Code Here


                StaxToEventBridge bridge = new StaxToEventBridge();
                bridge.setXMLStreamReader(value);
                bridge.setPipelineConfiguration(getConfiguration().makePipelineConfiguration());
                provider = bridge;
            }
            Source ss = new PullEventSource(provider);
            ss = augmentSource(ss, type);
            DocumentInfo doc = getConfiguration().buildDocument(ss);
            checkDocumentType(doc, (SaxonXQItemType)type);
            return new SaxonXQItem(doc, this);
        } catch (XPathException de) {
View Full Code Here

TOP

Related Classes of net.sf.saxon.evpull.PullEventSource

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.