the disclosure relates to a method for encoding an xml - based document , where the contents of the document correspond to an xml - schema voice definition . according to one exemplary method , an encoded binary representation of the document is produced by associating the contents of the document with binary structural codes using encoding tables , textual contents of a “ complex type ” data type being associated with the “ mixed ” content model structural codes .