XmlStreamWriter
Defines an interface to serialization of an XML Infoset.
Properties
Functions
Write an attribute. Calls to attribute() MUST follow a call to startTag() immediately. If there is no prefix defined for the given namespace, a prefix will be defined automatically. If namespace is null or empty string no namespace prefix is printed but just name.
Finish writing. All unclosed start tags will be closed and output will be flushed.
Write end tag. Repetition of namespace and name is just for avoiding errors.
Set the namespace prefix
Write the XML declaration.
Writes a start tag with the given namespace and name. If there is no prefix defined for the given namespace, a prefix will be defined automatically. The explicit prefixes for namespaces can be established by calling namespacePrefix immediately before this method. If namespace is null no namespace prefix is printed but just name. If namespace is empty string then serializer will make sure that default empty namespace is declared (in XML 1.0 xmlns='') or throw IllegalStateException if default namespace is already bound to non-empty string.
Writes text, where special XML chars are escaped automatically