Examples of writeEndElement()


Examples of com.envoisolutions.sxc.util.XoXMLStreamWriter.writeEndElement()

                    context.createWriter().write(w, o);
                }
            }
           
            if (jaxbElement != null) {
                w.writeEndElement();
            }
           
            if (frag == null || !frag) {
                w.writeEndDocument();
            }
View Full Code Here

Examples of com.envoisolutions.sxc.util.XoXMLStreamWriterImpl.writeEndElement()

                    context.createWriter().write(w, o);
                }
            }
           
            if (jaxbElement != null) {
                w.writeEndElement();
            }
           
            if (frag == null || !frag) {
                w.writeEndDocument();
            }
View Full Code Here

Examples of com.sun.xml.fastinfoset.stax.StAXDocumentSerializer.writeEndElement()

        try {
            xsw.writeStartDocument();
            xsw.writeStartElement(rootElement);
            for (Object o : t)
                m.marshal(o, xsw);
            xsw.writeEndElement();
            xsw.writeEndDocument();
            xsw.flush();
        } catch (XMLStreamException cause) {
            throw ThrowHelper.withInitCause(cause,
                    new IOException()
View Full Code Here

Examples of com.sun.xml.internal.stream.buffer.stax.StreamWriterBufferCreator.writeEndElement()

            writer.writeStartDocument();
            writer.writeStartElement(version.getPrefix(),"EndpointReference", version.nsUri);
            writer.writeNamespace(version.getPrefix(),version.nsUri);
            writer.writeStartElement(version.getPrefix(),"Address", version.nsUri);
            writer.writeCharacters(address);
            writer.writeEndElement();
            if(referenceParameters != null) {
                writer.writeStartElement(version.getPrefix(),"ReferenceParameters", version.nsUri);
                for (Element e : referenceParameters)
                    DOMUtil.serializeNode(e, writer);
                writer.writeEndElement();
View Full Code Here

Examples of com.sun.xml.stream.buffer.stax.StreamWriterBufferCreator.writeEndElement()

                if (elements != null) {
                    for (Element e : elements)
                        DOMUtil.serializeNode(e, writer);
                }

                writer.writeEndElement();
                writer.writeEndDocument();
                writer.flush();

                return writer.getXMLStreamBuffer();
            } catch (XMLStreamException e) {
View Full Code Here

Examples of de.odysseus.staxon.json.JsonXMLStreamWriter.writeEndElement()

    writer.writeStartDocument();
    writer.writeStartElement("alice");
    writer.writeStartArray("bob");
    writer.writeStartElement("bob");
    writer.writeCharacters("charlie");
    writer.writeEndElement();
    writer.writeStartElement("bob");
    writer.writeCharacters("david");
    writer.writeEndElement();
    writer.writeEndArray();
    writer.writeEndElement();
View Full Code Here

Examples of de.odysseus.staxon.xml.SimpleXMLStreamWriter.writeEndElement()

    StringWriter result = new StringWriter();
    XMLStreamWriter writer = new SimpleXMLStreamWriter(result, false);
    writer.writeStartDocument();
    writer.writeStartElement("alice");
    writer.writeCharacters("bob");
    writer.writeEndElement();
    writer.writeEndDocument();
    writer.close();
    Assert.assertEquals("<?xml version=\"1.0\" encoding=\"UTF-8\"?><alice>bob</alice>", result.toString());
  }
 
View Full Code Here

Examples of java.io.OutputStreamWriter.writeEndElement()

      if (id != null) {
        url = Constants.SLASH + id;
      }
      writer.writeStartElement("meta");
      writer.writeAttribute("path", url);
      writer.writeEndElement(); // close meta tag
    }
    // write query string
    writer.writeStartElement("meta");
    writer.writeAttribute("creation", DateTimeUtility.getCurrentTimeZoneMillis());
    writer.writeEndElement(); // close meta tag
View Full Code Here

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

        writer.writeStartDocument();
        writer.writeStartElement("soap", "Body", Soap12.getInstance().getNamespace());
        writer.setPrefix("soap", Soap12.getInstance().getNamespace());
        writer.writeNamespace("soap", Soap12.getInstance().getNamespace());
        soap12.writeMessage(message, writer, new MessageContext());
        writer.writeEndElement();
        writer.writeEndDocument();
        writer.close();
       
        Document doc = readDocument(out.toString());
        //printNode(doc);
View Full Code Here

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

        XMLStreamWriter writer = STAXUtils.createXMLStreamWriter(out, "UTF-8",null);
        writer.writeStartDocument();
        writer.writeStartElement("soap", "Body", Soap11.getInstance().getNamespace());
        writer.writeNamespace("soap", Soap11.getInstance().getNamespace());
        soap11.writeMessage(message, writer, new MessageContext());
        writer.writeEndElement();
        writer.writeEndDocument();
        writer.close();

        Document doc = readDocument(out.toString());
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.