|
|
|
|
|
XMLValidDocument (Function) Validates an XML document from an XSD schema.
cMyDoc is xmlDocument, description = "ProjectXSDSchema"
IF XMLValidDocument(cMyDoc) = False THEN
Error(ErrorInfo())
ELSE
Info("The XML document is valid")
END
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 the xmlDocument variable containing the document to validate. <XSD schema>: Optional character string 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 XMLSave function. Clasificación Lógica de negocio / UI: Lógica de negocio
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|