Specifies an output format for this serializer. It the
serializer has already been associated with an output format,
it will switch to the new format. This method should not be
called while the serializer is in the process of serializing
a document.
The standard property keys supported are: "method", "version", "encoding",
"omit-xml-declaration", "standalone", doctype-public",
"doctype-system", "cdata-section-elements", "indent", "media-type".
These property keys and their values are described in the XSLT recommendation,
see
XSLT 1.0 recommendation
The non-standard property keys supported are defined in
OutputPropertiesFactory.
This method can be called multiple times before a document is serialized. Each
time it is called more, or over-riding property values, can be specified. One
property value that can not be changed is that of the "method" property key.
The value of the "cdata-section-elements" property key is a whitespace
separated list of elements. If the element is in a namespace then
value is passed in this format: {uri}localName
If the "cdata-section-elements" key is specified on multiple calls
to this method the set of elements specified in the value
is not replaced from one call to the
next, but it is cumulative across the calls.