3.4.2 Flow of operations for high-speed parse
This subsection describes the flow of operations executed by the users when the high-speed parse support function is executed by describing the code in the user program.
Each operation is as follows:
-
Creating a Pre-Parse XML document
Create the Pre-Parse XML document considering the structural features of the XML document for parsing. For details about the policies for creating the Pre-Parse XML document, see 3.4.3 Creating the Pre-Parse XML document.
-
Generating a preparsed object
Parse the Pre-Parse XML document, and then generate the preparsed object. For details about how to generate the preparsed object, see 3.4.4 Generating the preparsed object.
-
Setting up the preparsed object
Set up the preparsed object in an XML parser of Cosminexus XML Processor. For details about how to set up the preparsed object, see 3.4.5 Setting up the preparsed object.
-
Parsing the XML document
Parse the XML document by the parse method of the XML parser in which the preparsed object is set up. For details about the parse methods for high-speed parse support function, see 3.4.6 Parsing the XML document.
-
Tuning the Pre-Parse XML document
Tune the Pre-Parse XML document as and when required. The parsing speed can be improved furthermore by optimizing the Pre-Parse XML document after examining the tuning information. For details about how to tune the Pre-Parse XML document, see 3.4.9 Tuning the Pre-Parse XML document.
For details about coding examples to be described in the user program for using the high-speed parse support function, see 3.4.8 Coding example for using the high-speed parse support function.