Converting XML code to binary format
First Claim
1. A method comprising:
- identifying unique code elements in XML code;
storing the unique code elements in a data structure;
encoding portions of the XML code into tokens, individual tokens having a predefined command and a reference to one of the unique code elements in the data structure;
extracting data from the XML code; and
forming an output containing the data structure, the tokens, and the data.
2 Assignments
0 Petitions
Accused Products
Abstract
A technique for converting XML code to a binary format involves identifying code elements that appear in the XML code and storing them in an element palette. The XML code is then encoded by selecting predefined commands that represent the XML text-based instructions and associating the predefined commands with references to corresponding code elements in the element palette. The commands and associated references form fixed-length tokens that can be further compressed. During conversion, data is extracted and stored in an uncompressed format. The conversion produces a binary output that contains the element palette, the data, and the tokens (compressed or uncompressed). When the binary form of the XML code is loaded for execution, the tokens are decoded into instructions that operate on the elements referenced in the element palette.
-
Citations
49 Claims
-
1. A method comprising:
-
identifying unique code elements in XML code;
storing the unique code elements in a data structure;
encoding portions of the XML code into tokens, individual tokens having a predefined command and a reference to one of the unique code elements in the data structure;
extracting data from the XML code; and
forming an output containing the data structure, the tokens, and the data. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method comprising:
-
during a first pass through XML code, creating a data structure listing unique code elements found in the XML code;
during a second pass through the XML code, deriving fixed-length tokens representative of the XML code, each token having a predefined command and a reference to one of the unique code elements in the data structure. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. A method comprising:
-
converting XML code to a binary output having a list of unique code elements from the XML code, a set of commands that represent the XML code and reference associated ones of the unique code elements, and data extracted from the XML code; and
executing the binary output. - View Dependent Claims (17, 18, 19, 20, 21)
-
-
22. A computer-readable medium storing computer-executable instructions that, when executed by a processor, perform acts comprising:
-
identifying unique code elements in XML code;
encoding portions of the XML code into fixed-length tokens, each token having a command that represents the portion of the XML code and a reference to one of the unique code elements found in the portion of XML code; and
forming an output containing the unique code elements, the tokens, and data extracted from the XML code. - View Dependent Claims (23, 24, 25, 26)
-
-
27. One or more computer-readable media storing computer-executable instructions that, when executed by a processor, perform acts comprising:
-
converting XML code to a binary output by;
storing unique code elements found in the XML code in a data structure;
encoding portions of the XML code into tokens, individual tokens associating a predefined command that represents the portion of the XML code with a reference to the data structure that identifies one of the unique code elements found in the portion of the XML code;
extracting data from the XML code; and
forming the binary output as containing the data structure, the tokens, and the data; and
executing the binary output by;
translating the commands into instructions; and
performing the instructions on the unique code elements in the data structure that are referenced by the commands. - View Dependent Claims (28, 29)
-
-
30. A data structure stored on a storage medium, comprising:
-
an element palette containing unique code elements identified in a piece of XML code;
at least one token block of tokens, each token containing a predefined command associated with a reference to one of the unique code elements in the element palette; and
at least one data block containing data extracted from the piece of XML code. - View Dependent Claims (31, 32, 33)
-
-
34. A computing system, comprising:
-
a memory;
a processor coupled to the memory; and
an XML-to-binary converter executing on the processor to convert XML code to a binary output, the binary output having a list of unique code elements identified in the XML code, data extracted from the XML code, and fixed-length tokens, where individual tokens associate a command selected from a set of commands with a reference to one of the unique code elements. - View Dependent Claims (35, 36, 37, 38)
-
-
39. A computing system for converting XML code to a binary format, comprising:
-
a palette creator to create an element palette that lists unique code elements from the XML code;
a tokenization module to produce tokens representative of portions of the XML code, the tokenization module being configured to select, for each portion of XML code, a predefined command that represents the portion of XML code and to associate the command with a reference to a unique code element in the element palette upon which the command operates, wherein individual tokens contain the command and the associated reference. - View Dependent Claims (40, 41, 42, 43)
-
-
44. A computing system for executing XML code that has been converted to a binary form, the binary form containing a list of unique code elements from the XML code, data extracted from the XML code, and a set of predefined commands representative of portions of the XML code, wherein the commands reference entries in the list that contain the unique code elements found in the portions of XML code represented by the commands, the computing system comprising:
-
a memory;
a processor coupled to the memory; and
an XML binary form decoder to decode the binary form of the XML code by storing the list and the data in the memory, and translating the commands into instructions that operate on the unique code elements referenced by the commands. - View Dependent Claims (45, 46, 47)
-
-
48. A computing system for executing XML code that has been converted to a binary form, the binary form containing a list of unique code elements from the XML code, data extracted from the XML code, and a set of predefined commands representative of portions of the XML code, wherein the commands reference entries in the list that contain the unique code elements found in the portions of XML code represented by the commands, the computing system comprising:
-
an interface that exposes a set of interface methods; and
a decoder to decode the commands into calls to different ones of the interface methods that operate on the unique code elements referenced by the commands. - View Dependent Claims (49)
-
Specification