Examples of addStartElement()


Examples of com.xmlcalabash.util.TreeWriter.addStartElement()

                tree = new TreeWriter(runtime);
                tree.startDocument(step.getNode().getBaseURI());
                tree.addStartElement(sem_triples);
                tree.startContent();

                tree.addStartElement(cx_database_uri);
                tree.startContent();
                tree.addText(nextDatabaseUri());
                tree.addEndElement();

                if (graphName != null) {
View Full Code Here

Examples of com.xmlcalabash.util.TreeWriter.addStartElement()

                tree.startContent();
                tree.addText(nextDatabaseUri());
                tree.addEndElement();

                if (graphName != null) {
                    tree.addStartElement(cx_graph_name);
                    tree.startContent();
                    tree.addText(graphName);
                    tree.addEndElement();
                }
View Full Code Here

Examples of com.xmlcalabash.util.TreeWriter.addStartElement()

        tree.startContent();
        tree.addStartElement(BaseResource.pr_code);
        tree.startContent();
        tree.addText("" + status.getCode());
        tree.addEndElement();
        tree.addStartElement(BaseResource.pr_message);
        tree.startContent();
        tree.addText("Bad request: " + exceptionMessage(status.getThrowable()));
        tree.addEndElement();
        tree.addEndElement();
        tree.endDocument();
View Full Code Here

Examples of com.xmlcalabash.util.TreeWriter.addStartElement()

        cpfx = errorCode.getPrefix();
        cns = errorCode.getNamespaceURI();

        TreeWriter treeWriter = new TreeWriter(runtime);
        treeWriter.startDocument(step.getNode().getBaseURI());
        treeWriter.addStartElement(c_error);
        treeWriter.addNamespace(cpfx, cns);

        treeWriter.addAttribute(_name, step.getName());
        treeWriter.addAttribute(_type, "p:error");
        treeWriter.addAttribute(_code, errorCode.toString());
View Full Code Here

Examples of com.xmlcalabash.util.TreeWriter.addStartElement()

        logger.trace(MessageFormatter.nodeMessage(step.getNode(), "Checking uri-info for " + uri));

        TreeWriter tree = new TreeWriter(runtime);
        tree.startDocument(step.getNode().getBaseURI());
        tree.addStartElement(c_uriinfo);

        if (uri.getScheme().equals("file")) {
            String fn = href.getString();
            if (fn.startsWith("file:")) {
                fn = fn.substring(5);
View Full Code Here

Examples of com.xmlcalabash.util.TreeWriter.addStartElement()

            } else if (child.getNodeKind() == XdmNodeKind.PROCESSING_INSTRUCTION) {
                tree.addPI(child.getNodeName().getLocalName(), child.getStringValue());
            } else if (child.getNodeKind() == XdmNodeKind.TEXT) {
                tree.addText(child.getStringValue());
            } else {
                tree.addStartElement(child);
                tree.addAttributes(child);
                tree.startContent();

                // Serialize the *whole* thing, then strip off the start and end tags, because
                // otherwise namespace fixup messes with the namespace bindings
View Full Code Here

Examples of com.xmlcalabash.util.TreeWriter.addStartElement()

            httpReq.setInput("source", inputPipe);
            httpReq.setOutput("result", outputPipe);

            TreeWriter req = new TreeWriter(runtime);
            req.startDocument(step.getNode().getBaseURI());
            req.addStartElement(XProcConstants.c_request);
            req.addAttribute(_method, "HEAD");
            req.addAttribute(_href, uri.toASCIIString());
            req.addAttribute(_status_only, "true");
            req.addAttribute(_detailed, "true");
View Full Code Here

Examples of com.xmlcalabash.util.TreeWriter.addStartElement()

                                line = brdr.readLine();
                            }

                            line = brdr.readLine();
                            while (line != null) {
                                tree.addStartElement(c_line);
                                tree.startContent();
                                tree.addText(line);
                                tree.addEndElement();
                                tree.addText("\n");
                                line = brdr.readLine();
View Full Code Here

Examples of com.xmlcalabash.util.TreeWriter.addStartElement()

                        }
                    });

                    TreeWriter tree = new TreeWriter(runtime);
                    tree.startDocument(step.getNode().getBaseURI());
                    tree.addStartElement(XProcConstants.c_result);
                    tree.startContent();

                    tree.addText(uri.toASCIIString());

                    tree.addEndElement();
View Full Code Here

Examples of com.xmlcalabash.util.TreeWriter.addStartElement()

            store.readEntry(href.getString(), href.getBaseURI().toASCIIString(), "text/*, */*", null, new DataReader() {
                public void load(URI id, String media, InputStream content, long len)
                        throws IOException {
                    TreeWriter tree = new TreeWriter(runtime);
                    tree.startDocument(id);
                    tree.addStartElement(XProcConstants.c_result);
                    tree.startContent();

                    Reader rdr = new InputStreamReader(content);
                    BufferedReader brdr = new BufferedReader(rdr);
                    Vector<String> lines = new Vector<String> ();
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.