Document.contentType

If you're using this for some other kind of XML, you can set the content type here.

Note: this has no impact on the function of this class. It is only used if the document is sent via a protocol like HTTP.

This may be called by parse() if it recognizes the data. Otherwise, if you don't set it, it assumes text/html; charset=utf-8.

  1. string contentType [@property setter]
    class Document
    @property
    string
    contentType
    (
    string mimeType
    )
  2. string contentType [@property getter]

Meta