Examples of writeElement()


Examples of com.caucho.vfs.XmlWriter.writeElement()

    String title = L.l("Profiling Results for {0}", contextPath);

    out.startElement("html");

    out.startElement("head");
    out.writeElement("title", title);

    out.startElement("style");
    out.writeAttribute("type", "text/css");

    out.println(
View Full Code Here

Examples of com.caucho.vfs.XmlWriter.writeElement()

    out.endElement("style");

    out.endElement("head");

    out.startElement("body");
    out.writeElement("h1", title);

    out.startElement("table");
    out.writeAttribute("border", 0);

    out.startElement("tr");
View Full Code Here

Examples of com.psddev.cms.tool.ToolPageContext.writeElement()

                                    State itemState = State.getInstance(item);
                                    String permalink = itemState.as(Directory.ObjectModification.class).getPermalink();

                                    page.writeStart("tr", "data-preview-url", permalink);
                                        page.writeStart("td", "style", "width: 20px;");
                                            page.writeElement("input",
                                                    "type", "checkbox",
                                                    "name", ITEMS_PARAMETER,
                                                    "value", itemState.getId());
                                        page.writeEnd();
View Full Code Here

Examples of net.sf.webdav.fromcatalina.XMLWriter.writeElement()

        namespaces.put("DAV:", "D");

        XMLWriter generatedXML = new XMLWriter(namespaces);
        generatedXML.writeXMLHeader();

        generatedXML.writeElement("DAV::multistatus", XMLWriter.OPENING);

        Enumeration<String> pathList = errorList.keys();
        while (pathList.hasMoreElements()) {

            String errorPath = (String) pathList.nextElement();
View Full Code Here

Examples of org.apache.cassandra.db.context.CounterContext.ContextState.writeElement()

        left.writeElement(NodeId.fromInt(6)2L, 0L);
        left.writeElement(NodeId.fromInt(9)1L, 0L);
        left.writeElement(NodeId.fromInt(12), 0L, 0L);

        right = ContextState.allocate(3, 0, allocator);
        right.writeElement(NodeId.fromInt(3), 3L, 0L);
        right.writeElement(NodeId.fromInt(6), 2L, 0L);
        right.writeElement(NodeId.fromInt(9), 1L, 0L);

        assert ContextRelationship.GREATER_THAN ==
            cc.diff(left.context, right.context);
View Full Code Here

Examples of org.apache.catalina.util.XMLWriter.writeElement()

                        generatedXML.writeElement(null, "response",
                                                  XMLWriter.CLOSING);
                    }

                    generatedXML.writeElement(null, "multistatus",
                                          XMLWriter.CLOSING);

                    Writer writer = resp.getWriter();
                    writer.write(generatedXML.toString());
                    writer.close();
View Full Code Here

Examples of org.apache.catalina.util.XMLWriter.writeElement()

        // Set the status, then generate the XML response containing
        // the lock information
        XMLWriter generatedXML = new XMLWriter();
        generatedXML.writeXMLHeader();
        generatedXML.writeElement(null, "prop"
                                  + generateNamespaceDeclarations(),
                                  XMLWriter.OPENING);

        generatedXML.writeElement(null, "lockdiscovery",
                                  XMLWriter.OPENING);
View Full Code Here

Examples of org.apache.util.XMLPrinter.writeElement()

     */
    protected String generateRequestBody() {

        XMLPrinter printer = new XMLPrinter();
        printer.writeXMLHeader();
        printer.writeElement("D", "DAV:", "acl",
                             XMLPrinter.OPENING);

        Enumeration aceList = aces.elements();

        while (aceList.hasMoreElements()) {
View Full Code Here

Examples of org.apache.webdav.lib.util.XMLPrinter.writeElement()

         * <p>The default behavior simply returns an empty body.</p>
         */
        protected String generateRequestBody() {
            XMLPrinter printer = new XMLPrinter();
            printer.writeXMLHeader();
            printer.writeElement("D", "DAV:", E_FIRE_EVENTS, XMLPrinter.OPENING);
            for ( Iterator i = events.iterator(); i.hasNext(); ) {
                Event event = (Event)i.next();
                printer.writeElement("D", E_EVENT, XMLPrinter.OPENING);
                Map information = event.getInformation();
                for ( Iterator j = information.entrySet().iterator(); j.hasNext(); ) {
View Full Code Here

Examples of org.codehaus.xfire.util.jdom.StaxSerializer.writeElement()

            if (fault.hasDetails()) {
                Element detail = fault.getDetail();
                StaxSerializer serializer = new StaxSerializer();
                List details = detail.getContent();
                for (int i = 0; i < details.size(); i++) {
                    serializer.writeElement((Element) details.get(i), writer);
                }
            } else {
                writer.writeStartElement("stack");
                StringWriter sw = new StringWriter();
                PrintWriter pw = new PrintWriter(sw);
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.