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.
struct XmlInternalWriteOptions
Types 1
structXmlInternalWriteOptions
Internal write options.
This mirrors the public ddn.data.xml.write.XmlWriteOptions but avoids depending on public modules from internal implementation code.
Fields
bool prettystring indentationstring newlinebool omitDeclarationstring declarationEncodingIf non-empty, overrides the `encoding="..."` value in the XML declaration.Functions 6
private fn
void writeIndent(ref typeof(appender!string()) sink, const XmlInternalWriteOptions options, size_t depth) @safeprivate fn
void writeNodeImpl(ref typeof(appender!string()) sink, XmlNode node, const XmlInternalWriteOptions options, size_t depth) @safefn
string serializeToString(XmlNode node, const XmlInternalWriteOptions options = XmlInternalWriteOptions.init) @safeSerializes `node` to an XML string.