Skip to main content

MimeType (XData Keyword)

Specifies the MIME type of the XData block.

Usage

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).

Details

This keyword specifies the MIME type of the contents of the XData block. The Visual Studio Code ObjectScript extensionOpens in a new tab 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.

Default

The default MIME type is text/xml

See Also

FeedbackOpens in a new tab