xml.DomDocument.validateOneElement

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

Syntax

validateOneElement(
   elt xml.DomNode )
  RETURNS INTEGER
  1. elt defines the XML element DomNode to validate.

Usage

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

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

Important:

This method is not part of W3C standard API.

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

See getErrorsCount() and getErrorDescription() to retrieve error messages related to XML document.

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).