xml.DomDocument.validateOneElement

Performs a DTD or XML Schema validation of an XML Element DomNode object.

Syntax

validateOneElement(
   node xml.DomNode )
  RETURNING result INTEGER
  1. node is the XML Element DomNode to validate.

Usage

Performs a DTD or XML Schema validation of an XML Element DomNode object; node is the XML Element DomNode to validate.

Returns the number of validation errors, or zero if there are none.

CAUTION:
Not part of W3C API.

See setFeature() to specify what kind of validation to do.

See getErrorsCount() and getErrorDescription() to retrieve error messages related to validation errors.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).