浏览器不接受XML版本1.1? [英] XML version 1.1 not accepted by browsers?

查看:149
本文介绍了浏览器不接受XML版本1.1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个程序可以生成相当原始的XML文档。
这样生成的文档的第一行是

I have a program that produces rather vanilla XML documents. The first line of such generated documents is

<?xml version="1.1"?>

IE8和Firefox都反对这一点,他们抱怨版本错误,并明确指出
指向到 1.1部分。

IE8 and Firefox both object to this, by complaining "Wrong version" and explicitly pointing to the "1.1" part.

如果我在第一行打补丁说:

If I patch the first line to say:

<?xml version="1.0"?>

这两个文件都会在没有投诉的情况下加载/显示给我。

both of them will load/show me document without complaint.

XML 1.1版不是标准吗?浏览器真的不接受吗?
还是错误消息(像大多数软件错误消息一样)只是误导,而
还有其他问题呢?

Isn't XML version 1.1 a standard? Do the browsers really not accept these? Or is the error message (like with most software error messages) simply misleading and something else is wrong?

推荐答案

XML 1.1不是事实上的标准,不是。它很少使用,除非有特殊原因,否则应忽略它。

XML 1.1 is not the defacto standard, no. It's very rarely used, and unless you have a specific reason to use it, you should ignore it.

http://en.wikipedia.org/wiki/Xml


第二版(XML 1.1)最初于2004年2月4日发布,与XML 1.0第三版[32]相同,目前是第二版,于2006年8月16日发布。它包含一些功能(有些争议)旨在使XML在某些情况下更易于使用。[33]主要的更改是允许使用EBCDIC平台上使用的行尾字符,以及使用Unicode 3.2中不存在的脚本和字符。 XML 1.1的实现不是很广泛,建议仅供那些需要其独特功能的人使用

这篇关于浏览器不接受XML版本1.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆