ddn.data.xml.internal.writer

Internal: low-level XML writing helpers.

This module is not part of the public API and may change at any time.

Types 1

Internal write options.

This mirrors the public ddn.data.xml.write.XmlWriteOptions but avoids depending on public modules from internal implementation code.

Fields
bool pretty
string indentation
string newline
bool omitDeclaration
string declarationEncodingIf non-empty, overrides the `encoding="..."` value in the XML declaration.

Functions 3

fnstring escapeText(string text) @safeEscapes character data in element text nodes.
fnstring escapeAttributeValue(string value) @safeEscapes attribute values.
fnstring serializeToString(XmlNode node, const XmlInternalWriteOptions options = XmlInternalWriteOptions.init) @safeSerializes `node` to an XML string.