Uses of Class
com.azure.xml.XmlWriter
-
Uses of XmlWriter in com.azure.xml
Methods in com.azure.xml that return XmlWriterModifier and TypeMethodDescriptionXmlWriter.flush()Flushes any un-flushed content that has been written to theXmlWriter.static XmlWriterXmlWriter.fromXmlStreamWriter(XMLStreamWriter writer) Creates an instance ofXmlWriterthat writes to the providedXMLStreamWriter.static XmlWriterXmlWriter.toStream(OutputStream xml) Creates an instance ofXmlWriterthat writes to the providedOutputStream.static XmlWriterWrites the object to the passedXmlWriter.Writes the object to the passedXmlWriter.XmlWriter.writeBinary(byte[] value) Writes a binary value as a base64 string.XmlWriter.writeBinaryAttribute(String localName, byte[] value) Writes a binary attribute as a base64 string (attribute="value").XmlWriter.writeBinaryAttribute(String namespaceUri, String localName, byte[] value) Writes a binary attribute as a base64 string that has a prefix (prefix:attribute="value").XmlWriter.writeBinaryElement(String localName, byte[] value) Writes a binary element as a base64 string (<tag>value</tag).XmlWriter.writeBinaryElement(String namespaceUri, String localName, byte[] value) Writes a binary element as a base64 string that has a prefix (<tag>value</tag).XmlWriter.writeBoolean(boolean value) Writes a boolean value.XmlWriter.writeBoolean(Boolean value) Writes a nullable boolean value.XmlWriter.writeBooleanAttribute(String localName, boolean value) Writes a boolean attribute (attribute="true").XmlWriter.writeBooleanAttribute(String localName, Boolean value) Writes a nullable boolean attribute (attribute="false").XmlWriter.writeBooleanAttribute(String namespaceUri, String localName, boolean value) Writes a boolean attribute that has a prefix (prefix:attribute="true").XmlWriter.writeBooleanAttribute(String namespaceUri, String localName, Boolean value) Writes a nullable boolean attribute that has a prefix (prefix:attribute="false").XmlWriter.writeBooleanElement(String localName, boolean value) Writes a boolean element (<tag>true</tag).XmlWriter.writeBooleanElement(String localName, Boolean value) Writes a nullable boolean element (<tag>true</tag).XmlWriter.writeBooleanElement(String namespaceUri, String localName, boolean value) Writes a boolean element that has a prefix (<tag>true</tag).XmlWriter.writeBooleanElement(String namespaceUri, String localName, Boolean value) Writes a nullable boolean element that has a prefix (<tag>true</tag).XmlWriter.writeCDataString(String value) Writes a CData value directly into an XML element (<tag><![CDATA[value]]></tag>).XmlWriter.writeDouble(double value) Writes a double value.XmlWriter.writeDoubleAttribute(String localName, double value) Writes a double attribute (attribute="3.14").XmlWriter.writeDoubleAttribute(String namespaceUri, String localName, double value) Writes a double attribute that has a prefix (prefix:attribute="3.14").XmlWriter.writeDoubleElement(String localName, double value) Writes a double element (<tag>3.14</tag).XmlWriter.writeDoubleElement(String namespaceUri, String localName, double value) Writes a double element that has a prefix (<tag>3.14</tag).XmlWriter.writeEndElement()Ends the current XML element by writing the closing tag (</tag>).XmlWriter.writeFloat(float value) Writes a float value.XmlWriter.writeFloatAttribute(String localName, float value) Writes a float attribute (attribute="2.7").XmlWriter.writeFloatAttribute(String namespaceUri, String localName, float value) Writes a float attribute that has a prefix (prefix:attribute="2.7").XmlWriter.writeFloatElement(String localName, float value) Writes a float element (<tag>2.7</tag).XmlWriter.writeFloatElement(String namespaceUri, String localName, float value) Writes a float element that has a prefix (<tag>2.7</tag).XmlWriter.writeInt(int value) Writes an int value.XmlWriter.writeIntAttribute(String localName, int value) Writes an int attribute (attribute="10").XmlWriter.writeIntAttribute(String namespaceUri, String localName, int value) Writes an int attribute that has a prefix (prefix:attribute="10").XmlWriter.writeIntElement(String localName, int value) Writes an int element (<tag>10</tag).XmlWriter.writeIntElement(String namespaceUri, String localName, int value) Writes an int element that has a prefix (<tag>10</tag).XmlWriter.writeLong(long value) Writes a long value.XmlWriter.writeLongAttribute(String localName, long value) Writes a long attribute (attribute="100000000000").XmlWriter.writeLongAttribute(String namespaceUri, String localName, long value) Writes a long attribute that has a prefix (prefix:attribute="100000000000").XmlWriter.writeLongElement(String localName, long value) Writes a long element (<tag>100000000000</tag).XmlWriter.writeLongElement(String namespaceUri, String localName, long value) Writes a long element that has a prefix (<tag>100000000000</tag).XmlWriter.writeNamespace(String namespaceUri) Writes a default XML namespace.XmlWriter.writeNamespace(String namespacePrefix, String namespaceUri) Writes an XML namespace with a specified prefix.XmlWriter.writeNumber(Number value) Writes a nullable number.XmlWriter.writeNumberAttribute(String localName, Number value) Writes a nullable number attribute (attribute="number").XmlWriter.writeNumberAttribute(String namespaceUri, String localName, Number value) Writes a nullable number attribute that has a prefix (prefix:attribute="number").XmlWriter.writeNumberElement(String localName, Number value) Writes a nullable number element (<tag>number</tag).XmlWriter.writeNumberElement(String namespaceUri, String localName, Number value) Writes a nullable number element that has a prefix (<tag>number</tag).XmlWriter.writeStartDocument()Writes the XML document start (<?xml version="1.0" encoding="UTF-8">).XmlWriter.writeStartDocument(String version, String encoding) Writes the XML document start (<?xml version="1.0" encoding="utf-8">).XmlWriter.writeStartElement(String localName) Begins an XML element start (<tag).XmlWriter.writeStartElement(String namespaceUri, String localName) Begins an XML element start that has a prefix (<prefix:tag).XmlWriter.writeStartSelfClosingElement(String localName) Begins an XML element start that will be self-closing (<tag/>).XmlWriter.writeStartSelfClosingElement(String namespaceUri, String localName) Begins an XML element start that has a prefix that will be self-closing (<prefix:tag/>).XmlWriter.writeString(String value) Writes a value directly into an XML element (<tag>value</tag>).XmlWriter.writeStringAttribute(String localName, String value) Writes a String attribute (attribute="value").XmlWriter.writeStringAttribute(String namespaceUri, String localName, String value) Writes a String attribute that has a prefix (prefix:attribute="value").XmlWriter.writeStringElement(String localName, String value) Writes a string element (<tag>string</tag).XmlWriter.writeStringElement(String namespaceUri, String localName, String value) Writes a string element that has a prefix (<tag>string</tag).XmlWriter.writeXml(XmlSerializable<?> value) Writes anXmlSerializableobject.XmlWriter.writeXml(XmlSerializable<?> value, String rootElementName) Writes anXmlSerializableobject.Methods in com.azure.xml with parameters of type XmlWriter