Examples of writeEmptyElement()


Examples of javax.xml.stream.XMLStreamWriter.writeEmptyElement()

        String namespace = "http://springframework.org/spring-ws";
        streamWriter.setDefaultNamespace(namespace);
        streamWriter.writeStartElement(namespace, "root");
        streamWriter.writeDefaultNamespace(namespace);
        streamWriter.writeEmptyElement(namespace, "child");
        streamWriter.writeEndElement();
        streamWriter.flush();

        StringWriter writer = new StringWriter();
        body.serialize(writer);
View Full Code Here

Examples of javax.xml.stream.XMLStreamWriter.writeEmptyElement()

         sw.writeStartDocument("UTF-8", "1.0");
         sw.writeStartElement("D", "propfind", "DAV:");
         sw.writeNamespace("D", "DAV:");
         sw.writeStartElement("D", "prop", "DAV:");
         for (String prop : props)
            sw.writeEmptyElement("D", prop, "DAV:");

         sw.writeEndElement(); // prop
         sw.writeEndElement(); // propfind
         sw.writeEndDocument();
         out.close();
View Full Code Here

Examples of javax.xml.stream.XMLStreamWriter.writeEmptyElement()

         {
            sw.writeStartElement("D", "remove", "DAV:");
            for (String value : propsRemove)
            {
               sw.writeStartElement("D", "prop", "DAV:");
               sw.writeEmptyElement(value);
               sw.writeEndElement(); // prop
            }
            sw.writeEndElement(); // remove
         }
View Full Code Here

Examples of javax.xml.stream.XMLStreamWriter.writeEmptyElement()

         sw.writeStartDocument("UTF-8", "1.0");
         sw.writeStartElement("D", "lockinfo", "DAV:");
         sw.writeNamespace("D", "DAV:");
         sw.writeStartElement("D", "lockscope", "DAV:");
         if (isExclusive)
            sw.writeEmptyElement("D", "exclusive", "DAV:");
         else
            sw.writeEmptyElement("D", "shared", "DAV:");
         sw.writeEndElement(); // lockscope
         sw.writeStartElement("D", "locktype", "DAV:");
         sw.writeEmptyElement("D", "write", "DAV:");
View Full Code Here

Examples of javax.xml.stream.XMLStreamWriter.writeEmptyElement()

         sw.writeNamespace("D", "DAV:");
         sw.writeStartElement("D", "lockscope", "DAV:");
         if (isExclusive)
            sw.writeEmptyElement("D", "exclusive", "DAV:");
         else
            sw.writeEmptyElement("D", "shared", "DAV:");
         sw.writeEndElement(); // lockscope
         sw.writeStartElement("D", "locktype", "DAV:");
         sw.writeEmptyElement("D", "write", "DAV:");
         sw.writeEndElement(); // locktype
         sw.writeStartElement("D", "owner", "DAV:");
View Full Code Here

Examples of javax.xml.stream.XMLStreamWriter.writeEmptyElement()

            sw.writeEmptyElement("D", "exclusive", "DAV:");
         else
            sw.writeEmptyElement("D", "shared", "DAV:");
         sw.writeEndElement(); // lockscope
         sw.writeStartElement("D", "locktype", "DAV:");
         sw.writeEmptyElement("D", "write", "DAV:");
         sw.writeEndElement(); // locktype
         sw.writeStartElement("D", "owner", "DAV:");
         sw.writeStartElement("D", "href", "DAV:");
         sw.writeCharacters("http://exoplatform.org");
         sw.writeEndElement(); // href
View Full Code Here

Examples of javax.xml.stream.XMLStreamWriter.writeEmptyElement()

            // task-status-message
            if (msg.getMessage() != null) {
                xsw.writeCharacters("\n\t\t\t");
                xsw.writeStartElement("task-status-message");
                xsw.writeStartElement("msg-loc-info");
                xsw.writeEmptyElement("loc-token");
                xsw.writeStartElement("loc-message");
                xsw.writeCharacters(msg.getMessage());
                xsw.writeEndElement();
                xsw.writeEndElement();
                xsw.writeEndElement();
View Full Code Here

Examples of javax.xml.stream.XMLStreamWriter.writeEmptyElement()

                xsw.writeCharacters("1");
                xsw.writeEndElement();
                xsw.writeCharacters("\n\t\t\t\t");
                xsw.writeStartElement("msg-loc-info");
                xsw.writeCharacters("\n\t\t\t\t\t");
                xsw.writeEmptyElement("loc-token");
                xsw.writeCharacters("\n\t\t\t\t\t");
                xsw.writeStartElement("loc-message");
                xsw.writeCharacters(msg.getException().getMessage());
                xsw.writeEndElement();
                xsw.writeCharacters("\n\t\t\t\t\t");
View Full Code Here

Examples of javax.xml.stream.XMLStreamWriter.writeEmptyElement()

    out.writeStartElement(WSDL_NAMESPACE, "types");

    if (_separateSchema) {
      out.writeStartElement(W3C_XML_SCHEMA_NS_URI, "schema");

      out.writeEmptyElement(W3C_XML_SCHEMA_NS_URI, "import");
      out.writeAttribute("namespace", _namespace);
      out.writeAttribute("schemaLocation",  _serviceName + "_schema1.xsd");

      out.writeEndElement(); // schema
    }
View Full Code Here

Examples of javax.xml.stream.XMLStreamWriter.writeEmptyElement()

    out.writeStartElement(WSDL_NAMESPACE, "binding");
    out.writeAttribute("name", _portName + "Binding");
    out.writeAttribute("type", TARGET_NAMESPACE_PREFIX + ':' + _portType);

    out.writeEmptyElement(_soapNamespaceURI, "binding");
    out.writeAttribute("transport", _soapTransport);
    out.writeAttribute("style", _soapStyle);

    for (AbstractAction action : _actionNames.values())
      action.writeWSDLBindingOperation(out, _soapNamespaceURI);
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.