Validation

Validation is available through the root class, at the XML-document level. There are two ways to perform a validation. In the first, you use the following constructor:

RootName(InputStream istrm, boolean validate)

If the input XML document does not use a DTD attached and validate = true, an exception is thrown.

Only one exception is thrown in an exception case:

DataBeanException

You can use get Message() to get the error information. The error message is usually composed of the class name and function name where the error occurred, as well as a detailed error message.

The second way to perform validation is through a method on the DataBean:

void  iRecipe.validate()