1. A method for encoding transmitting an Extensible Markup Language (XML) document, wherein an XML schema is associated with the XML document, the method comprising: a) generating a normalized XML schema, wherein the normalization of the XML schema comprises one of: simplifying a group which contains only one element, the group being dissolved and the one element being put into a content model at a level of the dissolved group, with attributes minOccurs and maxOccurs of the element being replaced by a product of corresponding attributes of the dissolved group and the one element prior to regrouping; simplifying a choice group containing an element with an attribute value minOccurs=0, the attribute minOccurs of the choice group being set to 0 irrespective of a previous value, with the element having the attribute value minOccurs=0 being assigned an attribute value minOccurs=1; and simplifying nested choice groups, wherein if a choice group contains a further choice group containing attribute values minOccurs=maxOccurs=1, the further choice group is dissolved and contents of the further choice group are incorporated directly into the choice group; b) encoding the normalized XML schema to an encoded XML schema using a metaschema using the BiM method; c) transmitting the encoded XML schema in a first bit stream; d) generating an encoded XML document by encoding the XML document to an encoded XML document using the normalized XML schema using the BiM method; and e) transmitting the encoded XML document in a second bit stream, wherein the first and second bit streams are provided for reception for a decoder.