Handle documents with id-less roots
Output attributes as properties
Properties with attributes are expanded to new properties