Published on InterSystems Developer Community (https://community.intersystems.com)

Home > XData MimeType anything other then just xml

Question
Dmitry Maslennikov · Feb 18, 2016

XData MimeType anything other then just xml

XData blocks in Caché classes has a MimeType property, and dcoumentation says

MimeType — The MIME type (more formally, the internet media type) of the contents of the XData block. The default is text/xml

But unfortunately I can't set any other values, such as text/html or application/javascript, because XData still expect only XML. 

So, question is, for what reasons this property was appeared?

It would be very usefull to set in this property anything other then text/xml, and Studio would highlighted it as developer expected.

#Languages #ObjectScript #Caché

Source URL:https://community.intersystems.com/post/xdata-mimetype-anything-other-then-just-xml