开发者

XML data file problem

开发者 https://www.devze.com 2023-01-25 07:04 出处:网络
I have a element that is boolean in XML schema. Iam making a .XML file in which I a开发者_高级运维m writing the values for the elements.According to the XML Schema specifications, the canonical repres

I have a element that is boolean in XML schema. Iam making a .XML file in which I a开发者_高级运维m writing the values for the elements.


According to the XML Schema specifications, the canonical representation for a boolean datatype is either true or false:

3.2.2.1 Lexical representation
An instance of a datatype that is defined as boolean can have the following legal literals {true, false, 1, 0}.

3.2.2.2 Canonical representation
The canonical representation for boolean is the set of literals {true, false}.

In your application, you want to convert the literals true and false into either a blank or an "X". This is something that should be handled by your XML parser, not by the schema.

0

精彩评论

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