Skip to main content

MimeType (XData Keyword)

Specifies the MIME type of the XData block.


To specify the MIME type of an XData block, use syntax like the following:

XData name [ MimeType = mimetype ] { }

Where mimetype is a valid MIME type (more formally, the Internet media typeOpens in a new tab).


This keyword specifies the MIME type of the contents of the XData block. The Visual Studio Code ObjectScript extension provides colorization for the following MIME types:

  • application/json

  • text/html

  • text/javascript

  • text/css

  • application/sql

  • text/x-java-source

  • application/python

  • text/x-python

  • text/xml

  • application/xml

Other MIME types are not colorized.


The default MIME type is text/xml

See Also

FeedbackOpens in a new tab