18. A computer-readable storage medium storing computer program code that, when executed by a computer, causes the computer to perform: converting at least one file format to extensible markup language (XML) code defined by an XML schema; encoding XML document data comprised in the XML code defined by the XML schema into a binary data structure, comprising: determining a scope within the document data and the scope comprises at least one well-formed fragment of the XML code; and storing the binary data structure by the scope; storing at least one token and at least one token type and assigning at least one token identifier number, wherein said at least one token includes data elements corresponding to XML syntax and said at least one token type reflects at least one component of XML syntax; storing said at least one token identifier number in an original sequence; determining whether said token is included in a lexicon; retrieving said token identifier number from said lexicon if said token is included in said lexicon, appending said token identifier number to said original sequence, and storing said token identifier number in the list for the XML data element; storing said token and said token type in the lexicon if said token is not included in said lexicon, assigning a unique token identifier to said token, appending said token identifier to the original sequence, and storing said token identifier in the list for the XML data element; mapping said at least one token identifier number to a position of said token identifier in said original sequence; inverting the position information from a list of tokens in an XML data element to map at least one selected token to all the XML data elements in which the selected token appears; initiating document regeneration for the scope, comprising: inserting the at least one token into an output stream for each such well-formed fragment of the XML code; and returning completed XML markup upon reading an end of the scope; and using token type information to compute the XML syntax for regenerating the XML, code, comprising: reading the next token identifier number from the original sequence; retrieving the token and token type for a token identifier number from the Lexicon; and inserting said token into the output stream with the XML syntax appropriate for type.
18. A computer-readable storage medium storing computer program code that, when executed by a computer, causes the computer to perform: converting at least one file format to extensible markup language (XML) code defined by an XML schema; encoding XML document data comprised in the XML code defined by the XML schema into a binary data structure, comprising: determining a scope within the document data and the scope comprises at least one well-formed fragment of the XML code; and storing the binary data structure by the scope; storing at least one token and at least one token type and assigning at least one token identifier number, wherein said at least one token includes data elements corresponding to XML syntax and said at least one token type reflects at least one component of XML syntax; storing said at least one token identifier number in an original sequence; determining whether said token is included in a lexicon; retrieving said token identifier number from said lexicon if said token is included in said lexicon, appending said token identifier number to said original sequence, and storing said token identifier number in the list for the XML data element; storing said token and said token type in the lexicon if said token is not included in said lexicon, assigning a unique token identifier to said token, appending said token identifier to the original sequence, and storing said token identifier in the list for the XML data element; mapping said at least one token identifier number to a position of said token identifier in said original sequence; inverting the position information from a list of tokens in an XML data element to map at least one selected token to all the XML data elements in which the selected token appears; initiating document regeneration for the scope, comprising: inserting the at least one token into an output stream for each such well-formed fragment of the XML code; and returning completed XML markup upon reading an end of the scope; and using token type information to compute the XML syntax for regenerating the XML, code, comprising: reading the next token identifier number from the original sequence; retrieving the token and token type for a token identifier number from the Lexicon; and inserting said token into the output stream with the XML syntax appropriate for type. 19. The computer-readable storage medium according to claim 18 , wherein the well-formed fragment of the XML code includes an end tag for each start tag.