The invention present disclosure relates to a method and device for coding
a structured document, particularly such as a XML-based document, wherein
a plurality of codes are generated by one or more schemas or namespaces,
wherein independent codes are assigned for a schema and/or a namespace
separately from other schemas and namespaces, for the elements defined or
declared in the schemas or namespaces or in groups of schemas or
namespaces.