From xmlbeans-dev Thu Nov 11 22:41:14 2004 From: "Jacob Danner" Date: Thu, 11 Nov 2004 22:41:14 +0000 To: xmlbeans-dev Subject: RE: Can we support value like y and n for boolean? Message-Id: <4B2B4C417991364996F035E1EE39E2E101C874A1 () uskiex01 ! amer ! bea ! com> X-MARC-Message: https://marc.info/?l=xmlbeans-dev&m=110021288118439 My guess is that you should make it a string and validate after converting it in your code. The XML Schema spec states the values an xsd:boolean type is allowed to have. Anything else is not a boolean and will not be valid according to the definining schema. http://www.w3.org/TR/xmlschema-2/#boolean The link above notes this, take a peek. Also, which toolkits are you referring to that allow this? -Jacobd -----Original Message----- From: hero Smith [mailto:heroneedshelp@yahoo.com] Sent: Thursday, November 11, 2004 2:23 PM To: dev@xmlbeans.apache.org Subject: Can we support value like y and n for boolean? Hi, Some of the xml biniding tools allow us to specify values like y/n or on/off for boolean data types instead of true/false so that the client who sends us xml were able to set these values for boolean elements. Is there any way we can do similar thing using XmlBeans? Thank you, Hero __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org For additional commands, e-mail: dev-help@xmlbeans.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org For additional commands, e-mail: dev-help@xmlbeans.apache.org