SignatureContext::GetSignedXMLDocument (open)

Return a copy of the document with all the unsigned nodes within the selected nodes removed.

Syntax

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

OBJECT FUNCTION GetSignedXMLDocument()

Return value

OBJECT

Copy of the document with unsigned nodes within the signed nodes removed

Description

The transformations within XML signature can exclude nodes from the signature calculation. Subsequently, modifications within these nodes don't invalidate the signature.

This function generates an XML document where all such unsigned nodes within nodes signed by the selected <Signature> item are removed. This document can be used safely without worries of using unsigned data.