Instance Property


Returns the MIME type for the receiver.


var mimeType: String? { get set }

Return Value

The MIME type for the receiver (for example, “text/xml”).


MIME types are assigned by IANA (see

See Also

Managing Document Attributes

var characterEncoding: String?

Sets the character encoding of the receiver to encoding,

var documentContentKind: XMLDocument.ContentKind

Sets the kind of output content for the receiver.

var dtd: XMLDTD?

Returns an XMLDTD object representing the internal DTD associated with the receiver.

var isStandalone: Bool

Sets a Boolean value that specifies whether the receiver represents a standalone XML document.

var version: String?

Sets the version of the receiver’s XML.