Do I have to change any of my server software to..

本文介绍了为了正确处理XML文件,服务器软件需要进行的MIME类型设置调整。文章详细解释了不同类型的XML文件(如XML文档、DTD文件等)所需的MIME类型,并提到了如何在服务器上进行这些设置。
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Do I have to change any of my server software to work with XML? The only changes needed are to make sure your server serves up .xml, .css, .dtd, .xsl, and whatever other file types you will use as the correct MIME content (media) types. The details of the settings are specified in RFC 3023. Most new versions of Web server software come preset. All that is needed is to edit the mime-types file (or its equivalent: as a server operator you already know where to do this) and add or edit the relevant lines for the right media types. In some servers (eg Apache), individual content providers or directory owners may also be able to change the MIME types for specific file types from within their own directories by using directives in a .htaccess file. The media types required are: text/xml for XML documents which are `readable by casual users' ; application/xml for XML documents which are `unreadable by casual users' ; text/xml-external-parsed-entity for external parsed entities such as document fragments (eg separate chapters which make up a book) subject to the readability distinction of text/xml; application/xml-external-parsed-entity for external parsed entities subject to the readability distinction of application/xml; application/xml-dtd for DTD files and modules, including character entity sets. The RFC has further suggestions for the use of the xml media type suffix for identifying ancillary files such as XSLT (application/xslt xml). If you run scripts generating XHTML which you wish to be treated as XML rather than HTML, they may need to be modified to produce the relevant Document Type Declaration as well as the right media type if your application requires them to be validated.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值