1. An object model for representing a document as a data structure in memory comprising: an item component for representing data elements; a relation component for representing associations between items; and an attribute component for representing information about items.