Native markup language code size reduction
OwnerDonald Eastlake IIIinventor
Life of this patent
Estimating the term…
Abstract
A computer-assisted method of reducing the size of a Macro Enabled Markup Language document such as XML is provided in which a segment of text is identified (112) within the document that is used repeatedly. This segment of text can be reduced by creation of a macro such as an XML Entity declaration. Thus, an Entity declaration is created (116) establishing a shorthand name for the segment of text. The Macro Enabled Markup Language Entity declaration is inserted (120) into the document at a location preceding the first use of the segment of text, and the shorthand name is substituted (124) throughout the document in place of the segment of text.
Claims21
A computer assisted method of reducing the size of a Macro Enabled Markup Language document, comprising:
- identifying a segment of text within the document that is used repeatedly;
- creating a Macro Enabled Markup Language Entity declaration establishing a shorthand name for the segment of text;
- inserting the Macro Enabled Markup Language Entity declaration into the document;
- and
- substituting the shorthand name throughout the document in place of the segment of text to produce a compressed document.
A computer assisted method of reducing the size of an XML document, comprising:
- identifying a segment of text within the document that is used repeatedly;
- creating an XML Entity declaration establishing a shorthand name for the segment of text;
- inserting the XML Entity declaration into the document;
- and
- substituting the shorthand name throughout the document in place of the segment of text to produce a compressed document.
A computer assisted method of reducing the size of an XML document, comprising:
- identifying a segment of text at least four characters in length within the document that is used repeatedly by scanning a Body portion of the Document for identical non-overlapping sequences of characters that constitute well formed XML;
- creating an XML Entity declaration establishing a shorthand name for the segment of text;
- inserting the XML Entity declaration into the document at a location preceding the first use of the segment of text;
- substituting the shorthand name throughout the document in place of the segment of text to produce a compressed document;
- processing the compressed document by:
- identifying a segment of text within the compressed document that is used repeatedly;
- creating an XML Parameter Entity declaration establishing a shorthand name for the segment of text;
- inserting the XML Parameter Entity declaration into the document at a location prior to the first use shorthand name;
- substituting the shorthand name throughout the compressed document in place of the segment of text to produce an optimized compressed document;
- and
- transmitting the optimized compressed document to a recipient.
Dependencies are inferred from the claim text.