types for representing structured documents