开发者

Is the XML declaration required 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜