XmlDocument::GetCanonicalizedDocument (open)

Canonicalize document

Syntax

LOADLIB "wh::xml/dom.whlib";

BLOB FUNCTION GetCanonicalizedDocument(STRING mode, RECORD options)

Parameters

STRING mode

One of C14N 1.0, EXC-C14N 1.0, C14N 1.1

RECORD options

Options

inclusive_ns_prefies

A list of namespace prefixes that are handled in the manner described by the Canonical XML Recommendation

keepcomments

Set to true to keep comments in the canonicalized version

nodelist

Optional, a xpath query evaluating to the nodes to canonicalize

Return value

BLOB

A blob containing the canonicalized document

Description

This function will return a canonicalized (subset of) a XML document, aiming for compliance with either the http://www.w3.org/TR/2001/REC-xml-c14n-20010315, http://www.w3.org/TR/2008/REC-xml-c14n11-20080502/ or http://www.w3.org/TR/2002/REC-xml-exc-c14n-20020718/ specifications