要使用什么 XML 版本? [英] What XML version to use?

查看:24
本文介绍了要使用什么 XML 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在线商店,供应商可以在其中上传和导入两种格式的文章.

I have an online shop where vendors can upload and import there articles in two formats.

  1. 纯文本(制表符分隔)
  2. XML

目前我使用的是 XML 1.0.

Currently I'm using XML 1.0.

但是我看到还有一个版本 1.1

However I see there is also a version 1.1

在维基百科上说,对于大多数用途,1.0 可以使用.http://en.wikipedia.org/wiki/XML#Versions

At wikipedia it is stated that for most uses 1.0 will be OK to use. http://en.wikipedia.org/wiki/XML#Versions

它还声明它使用以下 Unicode 编码:Unicode 2.0 到 Unicode 3.2.

It also states it uses the following Unicode encoding: Unicode 2.0 to Unicode 3.2.

在第五版中,XML 名称可能包含巴厘语、占族或腓尼基语脚本中的字符,以及自 Unicode 3.2 以来已添加到 Unicode 的许多其他字符

In the fifth edition, XML names may contain characters in the Balinese, Cham, or Phoenician scripts among many others which have been added to Unicode since Unicode 3.2

目前我只有几种基于拉丁"的语言,但未来可能会发生变化,我想做好准备.

Currently I only have a couple of 'latin' based languages but this may change in the future and I want to be prepared.

是否有某些语言不支持 Unicode 3.2 中的任何字符?v1.0 对我来说安全吗?

Are there any characters in Unicode 3.2 not supported for some languages? Is v1.0 safe to use for me?

如果您需要更多信息,请告诉我.

If you need more info just let me know.

推荐答案

使用 1.0 版.

如果您在标识符、EBCDIC 行结束字符或控制字符(字符代码 1 - 31)中使用某些非 ASCII 字符,则只需使用 1.1 版.

You would only need to use version 1.1 if you are using certain non-ASCII characters in identifiers, EBCDIC line ending characters, or control characters (character codes 1 - 31).

XML 1.1 的基本原理和更改列表

这篇关于要使用什么 XML 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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