A method of parsing a markup language document comprising syntactic
elements is disclosed, said method comprising, for one of said syntactic
elements, the steps of identifying (310) a type of the element,
processing (318) the element by determining a hash representation thereof
if said type is a first type, and augmenting (314) an at least partial
structural representation of the document using the hash representation
if said type is said first type.