ddn.data.xml.c14n

Canonicalization and normalization utilities.

Types 2

Options controlling canonical XML output.

C14N_1_0Canonical XML 1.0.
C14N_1_1Canonical XML 1.1.
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 fnstring stripCanonicalComments(string s) @safe
private fnstring[string] mapClone(const string[string] m) @safe
private fnstring getMapping(const string[string] m, string prefix) @safe nothrow
private fnstring[] computeVisiblyUtilizedPrefixes(XmlElement el, const XmlAttribute[] attrs, const XmlC14nOptions options) @safe
private fnvoid writeExclusiveElement( ref typeof(appender!string()) sink, XmlElement el, const XmlC14nOptions options, const string[string] parentInScope, const string[string] parentRendered, bool isRoot) @safe
private fnvoid writeCanonicalNodeExclusive( ref typeof(appender!string()) sink, XmlNode node, const XmlC14nOptions options, const string[string] inScope, const string[string] rendered, bool isRoot) @safe
private fnstring escapeTextC14n(string text) @safe
private fnstring escapeAttributeC14n(string value) @safe
private fnvoid writeInclusiveElement( ref typeof(appender!string()) sink, XmlElement el, const XmlC14nOptions options, const string[string] parentInScope, bool isRoot) @safe
private fnvoid writeCanonicalNodeInclusive( ref typeof(appender!string()) sink, XmlNode node, const XmlC14nOptions options, const string[string] inScope, bool isRoot) @safe
fnstring canonicalize(XmlNode node, XmlC14nOptions options = XmlC14nOptions.init) @safeProduces a deterministic canonical XML string for `node`.