1

xsd::string 的合法字符类型是否有限制(即只有字母和数字)?

@例如,将其包含在字符串中是否合法?

4

1 回答 1

2

根据http://www.w3schools.com/schema/schema_dtypes_string.asp, xsd:string 可以包含:

字符串数据类型可以包含字符、换行符、回车符和制表符。

此外,字符在 XML 语法中表示每个 Unicode 字符(包括重音符号、符号等),因此允许使用 @。唯一的限制是您需要转义&和字符<>原因很明显。来源:http ://www.schemacentral.com/sc/xsd/t-xsd_string.html

于 2013-07-10T08:37:06.743 回答