A method is for encoding a structured document, particularly an XML
document, during which the contents of the document are converted into a
binary representation. This binary representation is divided into
encoding units, which form an encoded data flow and can be read out from
the encoded data flow. The encoded data flow contains configuration data,
with which configuration information concerning the division of the
binary representation into encoding units can be read out before the
reading out of one of more encoding units.