TECHNIQUES FOR EFFICIENT LOADING OF BINARY XML DATA
First Claim
1. A method for encoding XML, comprising the computer-implemented steps of:
- receiving a request for a specified amount of binary encoded XML;
in response to the request, encoding text XML on a per-node basis until sufficient binary XML has been generated to satisfy the request;
responding to the request with said amount of binary XML; and
once the request has been satisfied, ceasing to encode the text XML until receiving a subsequent request for binary encoded XML.
1 Assignment
0 Petitions
Accused Products
Abstract
Various techniques are described hereafter for improving the efficiency of binary XML encoding and loading operations. In particular, techniques are described for incrementally encoding XML in response to amount-based requests. After encoding enough binary XML to satisfy an amount-based request, the encoder stops encoding the XML until a subsequent request is received. The incremental encoding may take place on the client-side or the server-side. Techniques are also described for reducing the character set conversion operations by having a parser convert tokens in text XML into one character set while converting non-token text in the text XML into another character set. Techniques are also described for generating self-contained binary XML documents, and for improving remap operations by providing a binary XML document on a chunk-by-chunk basis.
-
Citations
46 Claims
-
1. A method for encoding XML, comprising the computer-implemented steps of:
-
receiving a request for a specified amount of binary encoded XML; in response to the request, encoding text XML on a per-node basis until sufficient binary XML has been generated to satisfy the request; responding to the request with said amount of binary XML; and once the request has been satisfied, ceasing to encode the text XML until receiving a subsequent request for binary encoded XML. - View Dependent Claims (2, 3, 4, 5, 6, 24, 25, 26, 27, 28, 29)
-
-
7. A method for encoding binary XML, comprising:
-
detecting, by a parser that is parsing text XML, a node that qualifies as a simple property; sending to an encoder an indication that the node is a simple property; and in response to receiving the indication from the parser, the encoder encoding the node by generating a simple property opcode and a set of one or more operands associated with the simple property opcode. - View Dependent Claims (8, 9, 30, 31, 32)
-
-
10. A method for encoding XML, comprising:
-
receiving, at a parser, text XML to be converted to binary XML; wherein the text XML includes (a) character strings that correspond to tokens, and (b) character strings that do not correspond to tokens; wherein characters of the text XML are from a first character set; the parser converting the character strings that correspond to tokens into characters of a second character set; and the parser converting the character strings that do not correspond to tokens into characters of a third character set; wherein the first, second and third character sets are three different character sets. - View Dependent Claims (11, 12, 33, 34, 35)
-
-
13. A method of converting an XML document to a binary XML document, comprising:
-
converting information from the text XML document to binary XML, wherein the binary XML includes a series of opcodes and operands associated with the opcodes; in the binary XML generated from the text XML document, representing tokens from the text XML with identifiers; and including in the binary XML document, (a) the binary XML generated from the text XML document, and (b) an identifier-to-token mapping that allows a recipient of the binary XML document to reproduce the text XML document from the binary XML without resort to translation information separate from the binary XML document. - View Dependent Claims (14, 15, 16, 17, 18, 19, 36, 37, 38, 39, 40, 41, 42)
-
-
20. A method of storing an XML document in a repository, the method comprising:
-
on a client, receiving the XML document as text XML; at the client, converting the text XML to binary XML based, at least in part, on a set of one or more client-created token-to-identifier mappings; after converting the text XML to binary XML, providing the XML document to a server in a series of chunks; and including with each chunk only those client-created token-to-identifier mappings that (a) were used to generate identifiers that are contained in the chunk, and (b) were not included in any chunks that preceded the chunk in the series of chunks. - View Dependent Claims (21, 22, 23, 43, 44, 45, 46)
-
Specification