3.3.2 Processing of the schema cache functionality
The schema cache functionality includes the following for operating a schema cache:
-
Setting up a schema cache
-
Using the schema cache
-
Deleting and resetting up the schema cache
The following figure shows the processing of the schema cache functionality.
Conventional schema validation parses a schema document during validation and creates grammar objects even when the same schema is used for each validation; however, if you use the schema cache functionality, already existing grammar objects are reused to reduce the overhead of schema document parsing.
The following figure shows an example where one schema document is used to validate multiple instance documents. The example shows the differences in the process when using the schema cache functionality with a cache and when using the conventional process scheme validation without a cache: