Package com.io7m.xstructural.vanilla.internal.format
@Version("1.1.0")
package com.io7m.xstructural.vanilla.internal.format
Source formatter for xstructural XML documents.
Provides the XSSourceFormatter (which lays out and serializes a
document) and its supporting types: XSDOMSerializer (a well-formed,
injective DOM serializer) and XSProlog (the structured XML
declaration). The serializer is a partial function defined on well-formed XML
1.0 documents: it always emits well-formed XML 1.0, content round-trips
exactly, content cannot break out of its element, and characters outside the
XML 1.0 Char production are rejected.
-
ClassDescriptionSerializes an
Documentto an XML 1.0 string.A block element: contains element children only.A data element: a text-bearing leaf (no element children).An inline element: atomic, contains text only.A nested block element reference within mixed content.An inline element reference within mixed content.An item in the content of a mixed element.A leaf element: no children, no text (e.g.,xi:include).A mixed-content element: contains text and inline/block children.A node in the abstract format tree, holding a reference to the sourceElement.A verbatim element: contains a CDATA section reproduced byte-for-byte.A word: a maximal run of non-whitespace text.The XML declaration and byte-order mark of a document, captured from the input so that it can be repeated verbatim in the formatted output.A source formatter for xstructural XML documents.