PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
XMLValidNode (Function)
In French: XMLNoeudValide
Validates an XML node, its children and its attributes from its description in the XSD schema linked to the XML document.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Validation from the schema defined during the declaration
cMyNode is xmlNode, description="ProjectXSDSchema.RootNode"
cMyNode..Text = "21"
cMyNode..ChildNode = "221"
IF XMLValidNode(cMyNode) = False THEN
Error(ErrorInfo())
ELSE
Info("The XML node is valid")
END
Syntax
<Result> = XMLValidNode(<XML Node>)
<Result>: Boolean
  • True if the validation was successful,
  • False otherwise. To find out the error details, use ErrorInfo.
<XML Node>: xmlNode variable
Name of xmlNode variable corresponding to the node to validate by using the XSD schema. The XSD schema used corresponds to:
  • the description used when declaring the node (for example: cMyNode is xmlNode, description="myXSD.MyNode")
  • the description used when declaring the XML document to which the node is associated.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230xml.dll
Windows Mobile wp230xml.dll
Linux wd230xml.so
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment