Package org.exist.memtree

Examples of org.exist.memtree.MemTreeBuilder.processingInstruction()


    throws XPathException {
        if (newDocumentContext)
            {context.pushDocumentContext();}
        try {
            final MemTreeBuilder builder = context.getDocumentBuilder();
            final int nodeNr = builder.processingInstruction(target, data);
            final NodeImpl node = builder.getDocument().getNode(nodeNr);
            return node;
        } finally {
            if (newDocumentContext)
                {context.popDocumentContext();}
View Full Code Here


            }

            if (contentString.indexOf("?>") != Constants.STRING_NOT_FOUND)
                throw new XPathException(this, ErrorCodes.XQDY0026, contentString + "' is not a valid processing intruction content", contentSeq);

            int nodeNr = builder.processingInstruction(attr_name, contentString);

            Sequence result = ((DocumentImpl)builder.getDocument()).getNode(nodeNr);

            if (context.getProfiler().isEnabled())
                context.getProfiler().end(this, "", result);
View Full Code Here

                    buf.deleteCharAt(0);
                contentString = buf.toString();
            }
            if (contentString.indexOf("?>") != Constants.STRING_NOT_FOUND)
                {throw new XPathException(this, ErrorCodes.XQDY0026, contentString + "' is not a valid processing intruction content", contentSeq);}
            final int nodeNo = builder.processingInstruction(nameSeq.getStringValue(), contentString);
            final Sequence result = ((DocumentImpl)builder.getDocument()).getNode(nodeNo);
            if (context.getProfiler().isEnabled())
                {context.getProfiler().end(this, "", result);}
            return result;
        } finally {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.