Patent ID: 7457810

Claim:
A method of querying data in a mark-up language document stored in a data source, the mark-up language document containing a plurality of nodes, the method comprising: receiving, in response to a request to extract a node from the document, a data stream including a parent node; evaluating the parent node with respect to a query; sending a request, in response to evaluating the query, for one or more nodes in a nested relationship with the parent node if the parent node satisfies the query, wherein an extensible mark-up language (XML) wrapper first parses only the parent node and outputs the parent node to a filter for evaluating at least one predicate of a structured query language (SQL) statement; outputting the one or more nodes in response to the request; and if the parent node satisfies the query, storing the parent node in a first table; requesting for the one or more nodes in a nested relationship with the parent node stored in the first table; and creating a second table with the requested one or more nodes.