J A V A S C R I P T     I N T E G R A T I O N     S A M P L E     FOR BROWSER PLUGIN REPLACEMENT

Enveloping Signature from XML File

Input is an XML file and the resulting signature has integrated content of the XML file in the Object tag. The element to be signed is defined using element order syntax.

This demo sample also demonstrates how to use option XSIGN_OPTION_SAVE_DIALOG. When this option is used, the dialog window "Save signed file As" will pop-up on "Sign". Review the page source code for integration sample.

Click the Sign button.

Click the Verify button.

Prerequisites:

  • proXSign browser plugin replacement installed and running

Sample xml file:

XML node to be signed*:

Root can be signed with 'X;@'.

Set Id value for the signed node (if not set, proXSign will generate values):

Sample xml text signed: