Efficient extraction of XML content stored in a LOB
First Claim
1. A method for providing a self-contained XML fragment for a node in an XML document managed by a database management system, the method comprising the computer-implemented steps of:
- receiving a request for an XML fragment, wherein the request includes an XML path expression;
identifying a node, in an XML document managed by the database management system, that matches the XML path expression;
extracting a first XML fragment corresponding to the identified node;
identifying ancestor nodes for the identified node;
for each identified ancestor node, determining if the ancestor node includes information needed for proper interpretation of the first XML fragment, and if the ancestor node does include needed information, inserting a second XML fragment for proper interpretation of the first XML fragment containing the needed information into the first XML fragment; and
providing the first XML fragment in response to the request.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and system are provided for extracting a valid, self-contained fragment for a node in a XML document stored in a database management system. An XML index is used to identify a location in which XML fragment data corresponding to the node is located. Ancestors of the node are identified and examined for any information needed for the proper interpretation of the fragment. If an ancestor node contains such needed information, this information is patched into the XML fragment to ensure that the fragment is a valid, self-contained XML fragment.
-
Citations
24 Claims
-
1. A method for providing a self-contained XML fragment for a node in an XML document managed by a database management system, the method comprising the computer-implemented steps of:
-
receiving a request for an XML fragment, wherein the request includes an XML path expression; identifying a node, in an XML document managed by the database management system, that matches the XML path expression; extracting a first XML fragment corresponding to the identified node; identifying ancestor nodes for the identified node; for each identified ancestor node, determining if the ancestor node includes information needed for proper interpretation of the first XML fragment, and if the ancestor node does include needed information, inserting a second XML fragment for proper interpretation of the first XML fragment containing the needed information into the first XML fragment; and providing the first XML fragment in response to the request. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
-
Specification