Method and apparatus for schema-driven XML parsing optimization
First Claim
1. A method for parsing an XML document, comprising:
- Performing an analysis of the XML document from an XML schema associated with the XML document to extract one or more relationships between XML elements included in the XML document; and
parsing the XML elements of the XML document guided by relationships extracted in the analysis.
2 Assignments
0 Petitions
Accused Products
Abstract
Schema-driven XML parsing techniques allow an XML parser to optimize its parsing process by composing parse and to dynamically generate parsing code components based on XML schema definition for the targeted XML document. These techniques reduce the XML parsing time and reduce the memory requirement during parsing process. Further, a reconfigurable parser is provided which is guided during parsing of the XML document by XML element lexicographical information and state transition information extracted from a schema associated with the XML document. Pre-allocated element object pools may be provided based on the schema analysis to reduce the requirements for dynamic memory allocation and de-allocation operations.
86 Citations
32 Claims
-
1. A method for parsing an XML document, comprising:
-
Performing an analysis of the XML document from an XML schema associated with the XML document to extract one or more relationships between XML elements included in the XML document; and
parsing the XML elements of the XML document guided by relationships extracted in the analysis. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A reconfigurable parser for an XML document, comprising:
-
an analyzer for extracting from an XML schema associated with the XML document relationships between XML elements included in the XML document; and
a parser of the XML elements of the XML document guided by the relationships extracted by the analyzer. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A method for efficiently parsing an XML document, comprising:
-
analyzing a schema associated with the XML document to extract data structures of XML elements of the XML document;
generating parse code for each data structure of the XML elements; and
parsing the XML elements using the generated parse code as the XML document is read. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24)
-
-
25. A parser for an XML document, comprising:
-
a schema analyzer for extracting data structures of XML elements from a schema associated with the XML document;
a parse code generator that generates a parse code for each data structure of the XML elements; and
a parser integrator that invokes a corresponding parse code in respond to each XML element encountered as the XML document is read. - View Dependent Claims (26, 27, 28, 29, 30, 31, 32)
-
Specification