Package net.sf.saxon.dom

Examples of net.sf.saxon.dom.DOMObjectModel


                QName q = (QName)value;
                return new QNameValue(q.getPrefix(), q.getNamespaceURI(), q.getLocalPart(),
                        BuiltInAtomicType.QNAME, null);
            } else if (value instanceof Node) {
                //return (Item)(new DOMObjectModel().convertObjectToXPathValue(value, config));
                DOMObjectModel model = new DOMObjectModel();
                DocumentInfo wrapper = model.wrapDocument(value, "", config);
                NodeInfo node = model.wrapNode(wrapper, value);
                return node;
            } else if (value instanceof Source) {
                // Saxon extension to the XQJ specification
                Builder b = new TinyBuilder();
                PipelineConfiguration pipe = config.makePipelineConfiguration();
View Full Code Here


        }
    }

    public XQItem createItemFromNode(Node value, XQItemType type) throws XQException {
        try {
            NodeInfo n = new DOMObjectModel().wrapOrUnwrapNode(value, getConfiguration());
            XQItem result = new SaxonXQItem(n, this);
            if (type != null && !result.instanceOf(type)) {
                throw new XQException("The node is not a valid instance of the required type");
            }
            return result;
View Full Code Here

TOP

Related Classes of net.sf.saxon.dom.DOMObjectModel

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.