Arbortext Command Language > Functions by Alphabetical Listing > schema_validate
  
schema_validate
schema_validate ([doc])
Validates a document against a schema the user selects from a dialog box. The dialog box offers schemas specific to the namespaces used in the document and, at most, one non-namespaced schema.
doc — The document to validate against the schema. If not specified, the current document is used.
The function returns one of the following values:
0 — The validation against one or more schemas failed.
1doc is valid.
-1 — The user canceled the validation.
Error results are displayed in the Completeness Check Log window and linked to the area of the document causing each error. If no errors are encountered, a message is sent to the status bar. Refer to ns_schema_validate_batch and schema_validate_batch for similar functionality when developing Arbortext Publishing Engine applications.