Compression of structured documents
First Claim
Patent Images
1. A method to be performed on a computing device, the computing device comprising a processor and a memory, the method comprising:
- determining a schema for use with a structured document, wherein the structured document is based upon a language, wherein the structured document comprises an XML document;
generating a value replacement table based on the schema according to a set of rules;
compressing the structured document based on the value replacement table and based on a structure of the language, wherein the compressing the structured document based on the structure of the language comprises replacing one or more language constructs in the structured document with a language-based replacement code, including performing at least one of the following;
replacing a language construct of an element-with-a-prefix with a replacement code;
replacing a language construct of element-with-same-prefix-as-last-element with a replacement code;
replacing a language construct of an end-element or end-tag with a replacement code;
replacing a language construct of a name-space-declaration with a replacement code; and
replacing a language construct of an attribute-with-same-prefix-as-last-element with a replacement code,wherein the language constructs that are replaced are based on either a required structure of the language or a common usage pattern for the language; and
transmitting the compressed structured document without transmitting the value replacement table, the compressed structured document comprises a compressed XML document.
2 Assignments
0 Petitions
Accused Products
Abstract
Various embodiments are disclosed relating to a compression of documents. According to an example embodiment, a document may be compressed by replacing one or more language constructs in the document with a language-based replacement code. In addition, the document may be compressed by replacing one or more text strings in the document with a schema-based replacement code.
61 Citations
12 Claims
-
1. A method to be performed on a computing device, the computing device comprising a processor and a memory, the method comprising:
-
determining a schema for use with a structured document, wherein the structured document is based upon a language, wherein the structured document comprises an XML document; generating a value replacement table based on the schema according to a set of rules; compressing the structured document based on the value replacement table and based on a structure of the language, wherein the compressing the structured document based on the structure of the language comprises replacing one or more language constructs in the structured document with a language-based replacement code, including performing at least one of the following; replacing a language construct of an element-with-a-prefix with a replacement code; replacing a language construct of element-with-same-prefix-as-last-element with a replacement code; replacing a language construct of an end-element or end-tag with a replacement code; replacing a language construct of a name-space-declaration with a replacement code; and replacing a language construct of an attribute-with-same-prefix-as-last-element with a replacement code, wherein the language constructs that are replaced are based on either a required structure of the language or a common usage pattern for the language; and transmitting the compressed structured document without transmitting the value replacement table, the compressed structured document comprises a compressed XML document. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An apparatus comprising:
-
a processing device adapted to; determine a schema for use with a structured document, wherein the structured document is based upon a language, wherein the structured document comprises an XML document; generate a value replacement table based on the schema according to a set of rules; compress the structured document based on the value replacement table and based on a structure of the language, wherein the compressing the structured document based on the structure of the language comprises replacing one or more language constructs in the structured document with a language-based replacement code, including performing at least one of the following; replacing a language construct of an element-with-a-prefix with a replacement code; replacing a language construct of element-with-same-prefix-as-last-element with a replacement code; replacing a language construct of an end-element or end-tag with a replacement code; replacing a language construct of a name-space-declaration with a replacement code; and replacing a language construct of an attribute-with-same-prefix-as-last-element with a replacement code; and transmit the compressed structured document without transmitting the value replacement table, the compressed structured document comprises a compressed XML document. - View Dependent Claims (8, 9, 10)
-
-
11. A method to be performed on a computing device, the computing device comprising a processor and a memory, the method comprising:
-
receiving a compressed structured document without receiving a value replacement table, wherein the structured document is based upon a language, wherein the structured document comprises an XML document; determining a schema for use with the received compressed structured document; generating a value replacement table based on the schema according to a set of rules, wherein the generating comprises; creating a list of one or more text strings or other values in the schema; and assigning a schema-based replacement code to each text string or value in the schema according to the set of rules; and decompressing the compressed structured document based on a structure of the language and based on the value replacement table, wherein the decompressing comprises;
replacing each of one or more language-based replacement codes in the compressed structured document with a language construct, wherein the compressed structured document comprises a compressed XML document. - View Dependent Claims (12)
-
Specification