XMLDocument.documentFormat as String
This is inherited from the Document object.
cts.doc('example.xml').documentFormat; // Returns: 'XML'