1. A method for decoding a binary document for recovering a structured document of the XML type; a. said structure document i. being associated with at least one tree structure schema defining a structure of the structured document and ii. including nested structure elements delimiting data sets of the structured document, b. said binary document being coded using the tree structure schema to represent this document in a compact way, c. the decoding comprising the step of modeling a decoding process which uses a knowledge of said tree structure schema, and the step of triggering the decoding using the tree structure schema by decoding a first data set of one type in said structured document with a decompression algorithm and decoding a second data set of another type in the said structured document with another decompression algorithm for recovering the structured document, distributing the structured elements into three categories, including structured root elements, groups of elements, and structured, or unstructured base elements corresponding to lowest level elements, and associating each base element with an information type, at least one information type of the base elements being associated with an adapted decoding algorithm, and comprising the step of executing the decoding algorithm when a coded data set having an information type associated with said algorithm is encountered in the coded document.