Creating a Document Type and Adding It to a Document