xml.Encryption.encryptElementContentDetached

Encrypts all child nodes of the element DomNode using the symmetric key, and returns them as one new encrypted-data node.

Syntax

encryptElementContentDetached(
   node xml.DomNode )
  RETURNS xml.DomNode
  1. node defines the ELEMENT DomNode to encrypt.

Usage

Encrypts all child nodes of the element DomNode specified in node using the symmetric key, and returns them as one new EncryptedData node.

The resulting DomNode is not added at any place in the XML document. It's up to the user to insert it at the right place, and to remove the nodes in clear form.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).