1 - A method of coding a structured document, that comprises: a step of determining whether a succession of correct predictions exists for items of a set of items of the document and if the result of said determining step is positive, a step of coding the number of successive correct predictions.