Examples of processingInstruction()


Examples of org.dom4j.Document.processingInstruction()

        protected void runTest() throws Exception {
            jct.createContext().compileScript(jelly);
            Document dom = new SAXReader().read(jelly);
            checkLabelFor(dom);
            if (requirePI) {
                ProcessingInstruction pi = dom.processingInstruction("jelly");
                if (pi==null || !pi.getText().contains("escape-by-default"))
                    throw new AssertionError("<?jelly escape-by-default='true'?> is missing");

            }
            // TODO: what else can we check statically? use of taglibs?
View Full Code Here

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

Examples of org.pdf4j.saxon.event.Receiver.processingInstruction()

                out.comment(in.getStringValue(), 0, 0);
                break;

            case PROCESSING_INSTRUCTION:

                out.processingInstruction(
                        in.getPipelineConfiguration().getConfiguration().getNamePool().getLocalName(in.getNameCode()),
                        in.getStringValue(), 0, 0);
                break;

            case END_ELEMENT:
View Full Code Here

Examples of org.pdf4j.saxon.event.SequenceReceiver.processingInstruction()

        String expandedName = evaluateName(context);
        if (expandedName != null) {
            String data = expandChildren(context).toString();
            data = checkContent(data, context);
            SequenceReceiver out = context.getReceiver();
            out.processingInstruction(expandedName, data, locationId, 0);
        }
        return null;
    }

    /**
 
View Full Code Here

Examples of org.xml.sax.ContentHandler.processingInstruction()

                        handler.ignorableWhitespace(ch, start, length);
                    }
                   
                    public void processingInstruction(String target, String data) throws SAXException
                    {
                        handler.processingInstruction(target, data);
                    }
                   
                    public void setDocumentLocator(Locator locator)
                    {
                        handler.setDocumentLocator(locator);
View Full Code Here

Examples of org.xml.sax.DocumentHandler.processingInstruction()

                        handler.ignorableWhitespace(ch, start, length);
                    }
                   
                    public void processingInstruction(String target, String data) throws SAXException
                    {
                        handler.processingInstruction(target, data);
                    }
                   
                    public void setDocumentLocator(Locator locator)
                    {
                        handler.setDocumentLocator(locator);
View Full Code Here

Examples of org.xml.sax.helpers.DefaultHandler.processingInstruction()

        adapter.endPrefixMapping("prefix");
        adapter.startElement("uri", "localName", "qName", attrs);
        adapter.endElement("uri", "localName", "qName");
        adapter.characters(characters, 1, 2);
        adapter.ignorableWhitespace(whitespace, 3, 4);
        adapter.processingInstruction("target", "data");
        adapter.skippedEntity("name");
        adapter.endDocument();

        verify(handler).setDocumentLocator(locator);
        verify(handler).startDocument();
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.