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.
精彩评论