开发者

Is the XML declaration required in custom media types?

开发者 https://www.devze.com 2023-03-13 03:07 出处:网络
Is the <?xml version=\"1.0\" encoding=\"utf-8\"?> require开发者_如何转开发d in custom media types?

Is the

<?xml version="1.0" encoding="utf-8"?>

require开发者_如何转开发d in custom media types?

I am developing a RESTful API and I have custom media types such as:

application/vnd.mywebsite.com.order+xml

But I am not sure if the XML declaration is required in the response or not.

Thanks.


XML documents SHOULD contain a declaration but it is not required. Whether you are using a custom media type or not is not really relevant.

0

精彩评论

暂无评论...
验证码 换一张
取 消