Specification of sub-elements and attributes in an XML sub-tree and method for extracting data values therefrom
First Claim
1. A method for automatically generating SQL by specifying sub-elements and attributes in a sub-tree and for extracting data values therefrom, comprising the steps of:
- (a) defining content elements as recursively hierarchical sub-trees by defining a first XML ELEMENT in a document type definition, each content element including a top-level element and zero or more embedded subelements, and wherein leaf nodes in the sub-trees represent data values, the content elements further represented in an XML information set as objected-oriented content that is represented as a directed acyclic graph (DAG), where a child node may have multiple direct parents;
(b) extracting data values from the content elements by using the description of the first XML ELEMENT to recursively traverse each top-level element and extract the data values from the sub-tree;
(c) providing a first routine that accepts as parameters the description of the first XML ELEMENT, and a first top-level content element, and returns a string containing the data values extracted from the first top-level content element; and
(d) using the string returned from the first routine to represent SQL statements that perform database functions.
7 Assignments
0 Petitions
Accused Products
Abstract
A method and system for specifying sub-elements and attributes in a sub-tree and for extracting data values is disclosed. The method and system include defining content elements as recursively hierarchical sub-trees by defining a first XML ELEMENT in a document type definition, where each content element includes a top-level element and zero or more embedded subelements, and wherein leaf nodes in the sub-trees represent data values. The method and system further include extracting data values from the content elements by using the description of the first XML ELEMENT to recursively traverse each top-level element and extract the data values from the sub-tree.
148 Citations
12 Claims
-
1. A method for automatically generating SQL by specifying sub-elements and attributes in a sub-tree and for extracting data values therefrom, comprising the steps of:
-
(a) defining content elements as recursively hierarchical sub-trees by defining a first XML ELEMENT in a document type definition, each content element including a top-level element and zero or more embedded subelements, and wherein leaf nodes in the sub-trees represent data values, the content elements further represented in an XML information set as objected-oriented content that is represented as a directed acyclic graph (DAG), where a child node may have multiple direct parents;
(b) extracting data values from the content elements by using the description of the first XML ELEMENT to recursively traverse each top-level element and extract the data values from the sub-tree;
(c) providing a first routine that accepts as parameters the description of the first XML ELEMENT, and a first top-level content element, and returns a string containing the data values extracted from the first top-level content element; and
(d) using the string returned from the first routine to represent SQL statements that perform database functions. - View Dependent Claims (2, 3, 4)
-
-
5. A computer readable medium containing program instructions for automatically generating SQL by specifying sub-elements and attributes in a sub-tree and for extracting data values therefrom, the instructions for:
-
(a) defining content elements as recursively hierarchical sub-trees by defining a first XML ELEMENT in a document type definition, each content element including a top-level element and zero or more embedded subelements, and wherein leaf nodes in the sub-trees represent data values, the content elements further represented in an XML information set as objected-oriented content that is represented as a directed acyclic graph (DAG), where a child node may have multiple direct parents;
(b) extracting data values from the content elements by using the description of the first XML ELEMENT to recursively traverse each top-level element and extract the data values from the sub-tree;
(c) providing a first routine that accepts as parameters the description of the first XML ELEMENT, and a first top-level content element, and returns a string containing the data values extracted from the first top-level content element; and
(d) using the string returned from the first routine to represent SQL statements that perform database functions. - View Dependent Claims (6, 7, 8, 10, 11, 12)
-
-
9. A computer system having a processor and memory for executing programs, comprising:
-
at least one XML information set, the XML information set including a sequence of objected-oriented content elements represented as a directed acyclic graph (DAG) where a child node may have multiple direct parents;
a document type definition (DTD) for defining each content element as a first XML ELEMENT that is a recursively hierarchical tree containing zero or more embedded content elements, wherein each content element is associated with a tag name, and wherein leaf nodes in the sub-trees represent data values; and
a first routine for extracting data values from the content elements by using the description of the first XML ELEMENT to recursively traverse each top-level element and return a string containing the data values extracted from the sub-tree;
wherein the first routine uses the string to outputs SQL statements that perform at least one of selecting table rows specified by the data values, inserting the data values into specified rows, and inserting comments into a SQL file.
-
Specification