write all the document attributes