ddn.data.xml.c14n
Canonicalization and normalization utilities.
enum XmlC14nVersion
struct XmlC14nOptions
Types 2
enumXmlC14nVersion
Options controlling canonical XML output.
C14N_1_0Canonical XML 1.0.
C14N_1_1Canonical XML 1.1.
structXmlC14nOptions
Fields
XmlC14nVersion c14nVersionCanonicalization version.bool includeCommentsIf `true`, include comments in the output.bool exclusiveIf `true`, perform Exclusive XML Canonicalization (C14N 1.0 Exclusive).string[] inclusivePrefixesInclusive namespace prefix list used for exclusive canonicalization.Functions 11
private fn
string[] computeVisiblyUtilizedPrefixes(XmlElement el, const XmlAttribute[] attrs, const XmlC14nOptions options) @safeprivate fn
void writeExclusiveElement(
ref typeof(appender!string()) sink,
XmlElement el,
const XmlC14nOptions options,
const string[string] parentInScope,
const string[string] parentRendered,
bool isRoot) @safeprivate fn
void writeCanonicalNodeExclusive(
ref typeof(appender!string()) sink,
XmlNode node,
const XmlC14nOptions options,
const string[string] inScope,
const string[string] rendered,
bool isRoot) @safeprivate fn
void writeInclusiveElement(
ref typeof(appender!string()) sink,
XmlElement el,
const XmlC14nOptions options,
const string[string] parentInScope,
bool isRoot) @safeprivate fn
void writeCanonicalNodeInclusive(
ref typeof(appender!string()) sink,
XmlNode node,
const XmlC14nOptions options,
const string[string] inScope,
bool isRoot) @safefn
string canonicalize(XmlNode node, XmlC14nOptions options = XmlC14nOptions.init) @safeProduces a deterministic canonical XML string for `node`.