8. The apparatus of claim 7 wherein the schema comprises an XML schema, the processing device adapted to generate comprises a processing device adapted to: create a list of one or more text strings or other values in the XML schema; and assign a schema-based replacement code to each text string or value in the XML schema according to the set of rules.
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.