Create object structure for documents/elements