开发者

XML data file problem

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜