Package org.exist.memtree

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


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


                if (buf.indexOf("--") != Constants.STRING_NOT_FOUND|| buf.toString().endsWith("-")) {
                    throw new XPathException(this, ErrorCodes.XQDY0072, "'" + buf.toString() + "' is not a valid comment");
                }

                int nodeNr = builder.comment(buf.toString());
                result = builder.getDocument().getNode(nodeNr);
            }
        } finally {
//            if (newDocumentContext)
//                context.popDocumentContext();
View Full Code Here

                if (buf.indexOf("--") != Constants.STRING_NOT_FOUND ||
                        buf.toString().endsWith("-")) {
                    throw new XPathException(this, ErrorCodes.XQDY0072,
                        "'" + buf.toString() + "' is not a valid comment");
                }
                final int nodeNr = builder.comment(buf.toString());
                result = builder.getDocument().getNode(nodeNr);
            }
        } finally {
            if (newDocumentContext)
                {context.popDocumentContext();}
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.