FAST EXTRACTION OF SCALAR VALUES FROM BINARY ENCODED XML
First Claim
1. A method comprising:
- receiving a query that specifies one or more XML nodes that are binary-encoded;
in response to receiving the query, requesting binary-encoded XML data from one or more data sources;
receiving at least a subset of the binary-encoded XML data;
determining, from node information associated with the subset of the binary-encoded XML data, that a particular node, of the one or more XML nodes, is simple, wherein a node is simple if the node has no child elements and no associated attributes; and
in response to determining that the particular node is simple, identifying the scalar value of the particular node in the subset of the binary-encoded XML data.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques are provided for efficiently extracting scalar values from binary-encoded XML data. Node information is stored in association with binary-encoded XML data to indicate whether one or more nodes of an XML document are simple or complex. A node is simple if the node has no child elements and no attributes. The node information of a particular node is used to determine whether a particular node, identified in a query, is simple or complex. If the particular node is simple, then the scalar value of the particular node is identified without performing any operations other than possibly converting the scalar value to a non-binary-encoded format or converting the scalar value to a value of a different data type.
-
Citations
20 Claims
-
1. A method comprising:
-
receiving a query that specifies one or more XML nodes that are binary-encoded; in response to receiving the query, requesting binary-encoded XML data from one or more data sources; receiving at least a subset of the binary-encoded XML data; determining, from node information associated with the subset of the binary-encoded XML data, that a particular node, of the one or more XML nodes, is simple, wherein a node is simple if the node has no child elements and no associated attributes; and in response to determining that the particular node is simple, identifying the scalar value of the particular node in the subset of the binary-encoded XML data. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16, 17, 18)
-
-
9. A computer-implemented method comprising:
-
determining that a node in an XML representation contains an XML value to extract; before extracting the XML value, determining whether the node is simple or complex, wherein a node is simple if the node has no child elements and no associated attributes, wherein a node is complex if the node has at least one child element or at least one attribute; and in response to determining that the node is simple, extracting the XML value from the XML representation. - View Dependent Claims (10, 19, 20)
-
Specification