XmlOutput

An interface that allows custom serializers to special case being serialized to XML and retrieve the underlying XmlWriter. This is used for example by CompactFragment to make the fragment transparent when serializing to XML.

Properties

Link copied to clipboard
abstract val config: XmlConfig

The configuration used for serialization

Link copied to clipboard

The currently active serialization context

Link copied to clipboard
abstract val serialName: QName

The name for the current tag

Link copied to clipboard
abstract val target: XmlWriter

The XmlWriter used. Can be used directly by serializers

Functions

Link copied to clipboard
open fun delegateFormat(): XML

A delegate method to get access to a format with the same configuration

Link copied to clipboard
open fun ensureNamespace(qName: QName): QName
abstract fun ensureNamespace(qName: QName, isAttr: Boolean): QName

Ensure that the prefix of the qName is recorded (and the prefix added). This will not add the actual name anywhere, just ensures the namespace attribute if needed