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.
string contentType(string mimeType) @propertyIf you're using this for some other kind of XML, you can set the content type here.
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.
string contentType() @property constimplementing the FileResource interface, useful for sending via http automatically.