1. A method of coding a structured document, comprising: a step of determining whether a succession of correct predictions exists for items of a set of items of the document, if the result of said determining step is positive, a step of coding the number of successive correct predictions, and a step of updating at least one prediction on the basis of the items of the document.