ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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
Validates an XML node, its children and its attributes from its description in the XSD schema linked to the XML document.
Example
// Validation à partir du schéma défini lors de la déclaration
cMonNoeud is xmlNode, description="schemaXSDDuProjet.NoeudRacine"
cMonNoeud..Text = "21"
cMonNoeud..ChildNode = "221"
IF XMLValidNode(cMonNoeud) = False THEN
	Error(ErrorInfo())
ELSE
	Info("Le noeud XML est valide") 
END
Syntax
<Result> = XMLValidNode(<XML node>)
<Result>: Boolean
  • True if the validation was successful,
  • False otherwise. If an error occurs, use ErrorInfo for more details on the error.
<XML node>: xmlNode variable
Name of the xmlNode variable corresponding to the node to validate by using the XSD schema. The XSD schema used corresponds to:
  • or the description used when declaring the node (for example: cMonNoeud is an xmlNoeud, description="monXSD.MonNoeud")
  • the description used when declaring the XML document to which the node is associated.
Business / UI classification: Business Logic
Component: wd300xml.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help