Package javax.xml.stream

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


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


         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
         sw.writeEndElement(); // owner
         sw.writeEndElement(); // lockinfo
         sw.writeEndDocument();
View Full Code Here

        xmlWriter.writeCharacters(kmlBoolean(isLineEnabled()));
        xmlWriter.writeEndElement();

        final String altitudeMode = KMLExportUtil.kmlAltitudeMode(getAltitudeMode());
        xmlWriter.writeStartElement("altitudeMode");
        xmlWriter.writeCharacters(altitudeMode);
        xmlWriter.writeEndElement();

        final String coordString = String.format(Locale.US, "%f,%f,%f",
            position.getLongitude().getDegrees(),
            position.getLatitude().getDegrees(),
View Full Code Here

        final String coordString = String.format(Locale.US, "%f,%f,%f",
            position.getLongitude().getDegrees(),
            position.getLatitude().getDegrees(),
            position.getElevation());
        xmlWriter.writeStartElement("coordinates");
        xmlWriter.writeCharacters(coordString);
        xmlWriter.writeEndElement();

        xmlWriter.writeEndElement(); // Point
        xmlWriter.writeEndElement(); // Placemark
View Full Code Here

            throw new IllegalArgumentException(message);
        }

        xmlWriter.writeStartElement("Placemark");
        xmlWriter.writeStartElement("name");
        xmlWriter.writeCharacters(this.getLabelText());
        xmlWriter.writeEndElement();

        xmlWriter.writeStartElement("visibility");
        xmlWriter.writeCharacters(kmlBoolean(this.isVisible()));
        xmlWriter.writeEndElement();
View Full Code Here

        xmlWriter.writeStartElement("name");
        xmlWriter.writeCharacters(this.getLabelText());
        xmlWriter.writeEndElement();

        xmlWriter.writeStartElement("visibility");
        xmlWriter.writeCharacters(kmlBoolean(this.isVisible()));
        xmlWriter.writeEndElement();

        String shortDescription = (String) getValue(AVKey.SHORT_DESCRIPTION);
        if (shortDescription != null)
        {
View Full Code Here

        String shortDescription = (String) getValue(AVKey.SHORT_DESCRIPTION);
        if (shortDescription != null)
        {
            xmlWriter.writeStartElement("Snippet");
            xmlWriter.writeCharacters(shortDescription);
            xmlWriter.writeEndElement();
        }

        String description = (String) getValue(AVKey.BALLOON_TEXT);
        if (description != null)
View Full Code Here

        String description = (String) getValue(AVKey.BALLOON_TEXT);
        if (description != null)
        {
            xmlWriter.writeStartElement("description");
            xmlWriter.writeCharacters(description);
            xmlWriter.writeEndElement();
        }

        final PointPlacemarkAttributes normalAttributes = getAttributes();
        final PointPlacemarkAttributes highlightAttributes = getHighlightAttributes();
View Full Code Here

        // Write geometry
        xmlWriter.writeStartElement("Point");

        xmlWriter.writeStartElement("extrude");
        xmlWriter.writeCharacters(kmlBoolean(isLineEnabled()));
        xmlWriter.writeEndElement();

        final String altitudeMode = KMLExportUtil.kmlAltitudeMode(getAltitudeMode());
        xmlWriter.writeStartElement("altitudeMode");
        xmlWriter.writeCharacters(altitudeMode);
View Full Code Here

        try {
            StringWriter sw = new StringWriter();
            XMLStreamWriter xsw = XMLOutputFactory.newInstance().createXMLStreamWriter(sw);
            // Start document
            xsw.writeStartDocument();
            xsw.writeCharacters("\n");
            // component-task-result
            xsw.writeStartElement("component-task-result");
            xsw.writeDefaultNamespace("http://java.sun.com/xml/ns/jbi/management-message");
            xsw.writeCharacters("\n\t");
            // component-name
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.