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 6

fnstring escapeText(string text) @safeEscapes character data in element text nodes.
fnstring escapeAttributeValue(string value) @safeEscapes attribute values.
private fnvoid writeIndent(ref typeof(appender!string()) sink, const XmlInternalWriteOptions options, size_t depth) @safe
private fnbool hasTextChildren(const XmlElement el) @safe
private fnvoid writeNodeImpl(ref typeof(appender!string()) sink, XmlNode node, const XmlInternalWriteOptions options, size_t depth) @safe
fnstring serializeToString(XmlNode node, const XmlInternalWriteOptions options = XmlInternalWriteOptions.init) @safeSerializes `node` to an XML string.