AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos XML
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Validates an XML document from an XSD schema.
Ejemplo
// Validation à partir du schéma défini lors de la déclaration
cMonDoc is xmlDocument, description = "schemaXSDDuProjet"
IF cMonDoc.DocumentValide() = False THEN
	Error(ErrorInfo())
ELSE
	Info("Le document XML est valide") 
END
// Validation avec le schéma passé en paramètre
cMonDoc2 is xmlDocument
IF cMonDoc2.DocumentValide("schemaXSDDuProjet") = False THEN
	Error(ErrorInfo())
ELSE
	Info("Le document XML est valide") 
END
Sintaxis
<Result> = <XML document>.ValidDocument([<XSD schema>])
<Result>: booleano
  • True if the validation is successful,
  • False otherwise. If an error occurs, use ErrorInfo for more details on the error.
<XML document>: xmlDocument
Name of the xmlDocument variable containing the document to validate.
<XSD schema>: Cadena de caracteres opcional
Name of schema that will be used to validate the XML document.
  • If this parameter is specified, the specified XSD schema is used to validate the document.
  • If this parameter is not specified, the schema indicated at declaration time is used (declaration using the syntax: cMonDoc is an xmlDocument, description="monXSD").
  • A WLanguage error is displayed if the schema specified during the declaration is not valid.
Note: If the XML document has been declared with an XSD schema description, validation is performed automatically at save time using the <xmlDocument variable>Guardar function.
Componente: wd300xml.dll
Versión mínima requerida
  • Versión 24
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 04/10/2024

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