AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos XML
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
<xmlNode variable>.ValidNode (Function)
In french: <Variable xmlNoeud>.NoeudValide
Validates an XML node, its children and its attributes from its description in the XSD schema linked to the XML document.
Example
// Validation from the schema defined during the declaration
cMyNode is xmlNode, description="ProjectXSDSchema.RootNode"
cMyNode..Text = "21"
cMyNode..ChildNode = "221"
IF cMyNode.ValidNode() = False THEN
Error(ErrorInfo())
ELSE
Info("The XML node is valid")
END
Syntax
<Result> = <XML node>.ValidNode()
<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:
  • 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.
Component: wd290xml.dll
Versión mínima requerida
  • Versión 24
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 30/06/2023

Señalar un error o enviar una sugerencia | Ayuda local