ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
The content of this page has been updated to version 2025.  See "Using SaaS-exclusive new features in a project".
Help / WLanguage / WLanguage functions / Standard functions / XML file functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Signs an XML document.
Example
MonDoc is xmlDocument
NoeudASigner is xmlNode, description="schemaXSDDuProjet.NoeudRacine"
MonCertificat is Certificate

MaSignature is xmlSignature
MaSignature.NormalizationAlgorithm = atC14NExclusiveWithComments
MaSignature.SignatureAlgorithm = saRSA_SHA_160
MaSignature.Key = MonCertificat

IF XMLSign(MaSignature, MonDoc.NoeudASigner) = True THEN 
	Trace("Document signé")
END
Syntax
<Result> = XMLSign(<Signature> , <Insertion node>)
<Result>: Boolean
  • True if the XML document has been signed,
  • False otherwise.
<Signature>: xmlSignature or XMLSignatureXAdES type variable
Signature to be used. This parameter can be one of the following:
<Insertion node>: xmlNode variable
Name of the xmlNode variable that corresponds to the location where the signature should be inserted.
Remarks
  • New in SaaS
    A certificate on a bullet card can be used to sign XML. In this case, the signature is automatically RSA SHA 256.
    Attention This feature is only available in WINDEV Suite SaaS 2025 Update 1. For more details, see Using new features exclusive to WINDEV Suite SaaS 2025.
Business / UI classification: Business Logic
Component: wd300xml.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/14/2025

Send a report | Local help