1. A method for encoding an electronic document having markup language content, wherein the document includes at least one tag and an associated content, the method comprising the steps of: (a) separating the tag from the content with a separation variable; (b) replacing the tag with an alias, wherein the alias is a pre-defined representation for the tag; and (c) inserting at least one flag within the tag to form an encode tag structure, wherein a first encoded document is formed.