Computes digest value of C14N transformation of XML document (file-to-digest with options).

Namespace:  Sc14n
Assembly:  diSc14nNet (in diSc14nNet.dll) Version: 0.9.0.0 (0.9.0.0)

Syntax

C#
public static string ToDigest(
	string xmlFile,
	string nameOrId,
	Tran tranOpt,
	DigAlg digAlg
)
Visual Basic (Declaration)
Public Shared Function ToDigest ( _
	xmlFile As String, _
	nameOrId As String, _
	tranOpt As Tran, _
	digAlg As DigAlg _
) As String

Parameters

xmlFile
Type: System..::.String
Name of input XML file.
nameOrId
Type: System..::.String
To specify the tag name or Id. See remarks for C14n.ToFile.
tranOpt
Type: Sc14n..::.Tran
Transformation option.
digAlg
Type: Sc14n..::.DigAlg
Digest algorithm

Return Value

Digest value in base64 encoding or empty string on error (for more details use Err.LastError()).

See Also