PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
Validates an XML document from an XSD schema.
Versiones 17 y posteriores
iPhone/iPad This function is now available for iPhone/iPad applications.
Nueva funcionalidad versión 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versiones 18 y posteriores
Universal Windows 10 App This function is now available in Windows Store apps mode.
Nueva funcionalidad versión 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.
Versiones 21 y posteriores
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Nueva funcionalidad versión 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.
Ejemplo
// Validation from the schema defined during the declaration
cMyDoc is xmlDocument, description = "ProjectXSDSchema"
IF XMLValidDocument(cMyDoc) = False THEN
Error(ErrorInfo())
ELSE
Info("The XML document is valid")
END
// Validation with the schema passed in parameter
cMyDoc2 is xmlDocument
IF XMLValidDocument(cMyDoc2, "XSDSchemaOfProject") = False THEN
Error(ErrorInfo())
ELSE
Info("The XML document is valid")
END
Sintaxis
<Result> = XMLValidDocument(<XML document> [, <XSD schema>])
<Result>: Boolean
  • 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 xmlDocument variable containing the document to validate.
<XSD schema>: Optional character string (with quotes)
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 specified during the declaration is used (declaration using the following syntax: cMyDoc is xmlDocument, description="MyXSD").
  • A WLanguage error is displayed if the schema specified during the declaration is not valid.
Remark: If the XML document was declared with a description of XSD schema, the validation is automatically performed during the backup by XMLSave.
Clasificación Lógica de negocio / UI : Lógica de negocio
Componente : wd250xml.dll
Versión mínima requerida
  • Versión 15
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario