doc_type
doc_type ([doc])
This function returns the external name of the document type associated with the document; for example, docbook. If doc is omitted, the current document is used.
If the given document is an XML instance without a DTD declaration, this function returns the name of the first non-empty tag in the document.