Examples of writeStartElement()


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

                jaxbElement = (JAXBElement) o;
            }
           
            if (jaxbElement != null) {
                QName n = jaxbElement.getName();
                w.writeStartElement("",  n.getLocalPart(), n.getNamespaceURI());
                // TODO: we should check to see if a NS is already written here
                w.writeDefaultNamespace(n.getNamespaceURI());
               
                o = jaxbElement.getValue();
            }
View Full Code Here

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

                jaxbElement = (JAXBElement) o;
            }
           
            if (jaxbElement != null) {
                QName n = jaxbElement.getName();
                w.writeStartElement("",  n.getLocalPart(), n.getNamespaceURI());
                // TODO: we should check to see if a NS is already written here
                w.writeDefaultNamespace(n.getNamespaceURI());
               
                o = jaxbElement.getValue();
            }
View Full Code Here

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

       
        final String rootElement = getRootElementName(elementType);
       
        try {
            xsw.writeStartDocument();
            xsw.writeStartElement(rootElement);
            for (Object o : t)
                m.marshal(o, xsw);
            xsw.writeEndElement();
            xsw.writeEndDocument();
            xsw.flush();
View Full Code Here

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

        StreamWriterBufferCreator writer = new StreamWriterBufferCreator();

        try {
            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) {
View Full Code Here

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

            StreamWriterBufferCreator writer = new StreamWriterBufferCreator();

            try {
                writer.writeStartDocument();
                writer.writeStartElement(version.getPrefix(),"EndpointReference", version.nsUri);
                writer.writeNamespace(version.getPrefix(),version.nsUri);

                writePartialEPRInfoset(writer, version, address, referenceParameters, service, port, portType,
                        metadata,wsdlAddress, wsdlTargetNamespace, attributes);
View Full Code Here

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

  @Test
  public void testArray() throws Exception {
    StringWriter result = new StringWriter();
    JsonXMLStreamWriter writer = createXmlStreamWriter(result, new QName("alice"));
    writer.writeStartDocument();
    writer.writeStartElement("alice");
    writer.writeStartArray("bob");
    writer.writeStartElement("bob");
    writer.writeCharacters("charlie");
    writer.writeEndElement();
    writer.writeStartElement("bob");
View Full Code Here

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

  @Test
  public void testTextContent() throws Exception {
    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.writeStartElement()

    }
    WebSession webSession = request.getSession(false);
    XMLOutputFactory factory = XMLOutputFactory.newInstance();
    XMLStreamWriter writer = factory.createXMLStreamWriter(os);
    writer.writeStartDocument();
    writer.writeStartElement("sc-web");
    writer.writeStartElement("head");
    // write url path
    String url = request.getURL();
    if (url != null) {
      int qPos = url.indexOf("?");
View Full Code Here

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

        OutMessage message = new OutMessage("urn:bleh");
        message.setBody(fault);
        XMLStreamWriter writer = STAXUtils.createXMLStreamWriter(out, "UTF-8",null);
        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();
View Full Code Here

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

        OutMessage message = new OutMessage("urn:bleh");
        message.setBody(fault);
       
        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();
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.