4.6.1 How to set up the preparsed object in DocumentBuilder
A coding example to set up the preparsed object in DocumentBuilder is as follows:
The following describes the coding example. Each item number corresponds to the number in the comments in the coding example.
-
Generate the preparsed object.
For details about how to generate the preparsed object, see 3.4.4 Generating the preparsed object.
-
Set up the preparsed object in DocumentBuilder.
In the first argument of the setAttribute method used to set up the preparsed object, specify the setup key http://cosminexus.com/xml/properties/preparsedobject-load, and in the second argument, specify pobj that indicates the PreparsedObject object.