1. A method for encoding markup-language information for transmission, where said markup-language information comprises a sequence, said sequence comprising at least two ordered elements, said at least two ordered elements comprising at least one data element and at least one tag element associated with each data element, the method comprising: selecting a macro corresponding to said sequence, where said macro takes at least one parameter, and where using at least one specific data element from among said at least one data elements for each of said at least one parameter to said macro yields said sequence; and substituting said sequence in said markup-language information with macro data comprising a reference to said macro and to said specific data elements in said markup-language information, said substitution resulting in modified markup-language information.