Add document model in both xml and json