A document is divided into elements (one of them is the root), their attributes, text nodes in elements, processing instructions, notations, comments.
One logical doc may be stored in one or more entities; at least in the document entity.