|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Boolean 0 or 1 true or falseHi We use jaxb to merge to xml files to one and see that 0's are changed to false and 1's are changed to true in the output. In the xsd file we have the following declaration: <xs:element name="enableAM" type="xs:boolean" default="false" minOccurs="0">
In put <enableAM>0</enableAM> is output to <enableAM>false</enableAM> and <enableAM>1</enableAM> is output to <enableAM>true</enableAM>. The xml document looks valid. JAXB never complains about 0's an 1's. Gives output. What is correct? Lulseged
|
|
|
Re: Boolean 0 or 1 true or falseHello,
XML spec says: "" 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}. "" so all values you mentioned are fine. Pavel Lulseged Zerfu wrote: > > Hi > > We use jaxb to merge to xml files to one and see that 0's are changed > to false and 1's are changed to true in the output. > > In the xsd file we have the following declaration: > > <xs:element name="enableAM" type="xs:boolean" default="false" > minOccurs="0"> > <xs:annotation> > <xs:documentation>Use to configure saAmfCompAMEnable > mib object.</xs:documentation> > </xs:annotation> > </xs:element> > > In put <enableAM>0</enableAM> is output to <enableAM>false</enableAM> > and <enableAM>1</enableAM> is output to <enableAM>true</enableAM>. > > > The xml document looks valid. JAXB never complains about 0's an 1's. > Gives output. > > What is correct? > > Lulseged > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RE: Re: Boolean 0 or 1 true or falseHi
Thanks How can I give a direction so that it writes 0 and 1 instead of false and true? Lulseged -----Original Message----- From: Pavel.Bucek@... [mailto:Pavel.Bucek@...] Sent: den 6 november 2009 10:35 To: users@... Subject: Re: Boolean 0 or 1 true or false Hello, XML spec says: "" 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}. "" so all values you mentioned are fine. Pavel Lulseged Zerfu wrote: > > Hi > > We use jaxb to merge to xml files to one and see that 0's are changed > to false and 1's are changed to true in the output. > > In the xsd file we have the following declaration: > > <xs:element name="enableAM" type="xs:boolean" default="false" > minOccurs="0"> > <xs:annotation> > <xs:documentation>Use to configure saAmfCompAMEnable > mib object.</xs:documentation> > </xs:annotation> > </xs:element> > > In put <enableAM>0</enableAM> is output to <enableAM>false</enableAM> > and <enableAM>1</enableAM> is output to <enableAM>true</enableAM>. > > > The xml document looks valid. JAXB never complains about 0's an 1's. > Gives output. > > What is correct? > > Lulseged > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Boolean 0 or 1 true or falseBoth. See http://www.w3.org/TR/xmlschema-2/#boolean
-W On Fri, Nov 6, 2009 at 10:09 AM, Lulseged Zerfu <lulseged.zerfu@...> wrote:
|
|
|
Re: Boolean 0 or 1 true or falsegoogle is your friend:
http://stackoverflow.com/questions/343669/how-to-let-jaxb-render-boolean-as-0-and-1-not-true-and-false Lulseged Zerfu wrote: > Hi > > Thanks > > How can I give a direction so that it writes 0 and 1 instead of false > and true? > > Lulseged > > -----Original Message----- > From: Pavel.Bucek@... [mailto:Pavel.Bucek@...] > Sent: den 6 november 2009 10:35 > To: users@... > Subject: Re: Boolean 0 or 1 true or false > > Hello, > > XML spec says: > > "" > 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}. > "" > > so all values you mentioned are fine. > > Pavel > > > > Lulseged Zerfu wrote: > >> Hi >> >> We use jaxb to merge to xml files to one and see that 0's are changed >> to false and 1's are changed to true in the output. >> >> In the xsd file we have the following declaration: >> >> <xs:element name="enableAM" type="xs:boolean" default="false" >> minOccurs="0"> >> <xs:annotation> >> <xs:documentation>Use to configure saAmfCompAMEnable >> mib object.</xs:documentation> >> </xs:annotation> >> </xs:element> >> >> In put <enableAM>0</enableAM> is output to <enableAM>false</enableAM> >> and <enableAM>1</enableAM> is output to <enableAM>true</enableAM>. >> >> >> The xml document looks valid. JAXB never complains about 0's an 1's. >> Gives output. >> >> What is correct? >> >> Lulseged >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RE: Re: Boolean 0 or 1 true or falseThanks
Who is not a friend of google? lulseged -----Original Message----- From: Pavel.Bucek@... [mailto:Pavel.Bucek@...] Sent: den 6 november 2009 11:02 To: users@... Subject: Re: Boolean 0 or 1 true or false google is your friend: http://stackoverflow.com/questions/343669/how-to-let-jaxb-render-boolean -as-0-and-1-not-true-and-false Lulseged Zerfu wrote: > Hi > > Thanks > > How can I give a direction so that it writes 0 and 1 instead of false > and true? > > Lulseged > > -----Original Message----- > From: Pavel.Bucek@... [mailto:Pavel.Bucek@...] > Sent: den 6 november 2009 10:35 > To: users@... > Subject: Re: Boolean 0 or 1 true or false > > Hello, > > XML spec says: > > "" > 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}. > "" > > so all values you mentioned are fine. > > Pavel > > > > Lulseged Zerfu wrote: > >> Hi >> >> We use jaxb to merge to xml files to one and see that 0's are changed >> to false and 1's are changed to true in the output. >> >> In the xsd file we have the following declaration: >> >> <xs:element name="enableAM" type="xs:boolean" default="false" >> minOccurs="0"> >> <xs:annotation> >> <xs:documentation>Use to configure saAmfCompAMEnable >> mib object.</xs:documentation> >> </xs:annotation> >> </xs:element> >> >> In put <enableAM>0</enableAM> is output to <enableAM>false</enableAM> >> and <enableAM>1</enableAM> is output to <enableAM>true</enableAM>. >> >> >> The xml document looks valid. JAXB never complains about 0's an 1's. >> Gives output. >> >> What is correct? >> >> Lulseged >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Boolean 0 or 1 true or falseLook in the list archives, I had a very similar query to this not too
long ago :-) On 6 Nov 2009, at 10:41, Lulseged Zerfu wrote: > Thanks > > Who is not a friend of google? > > lulseged > > -----Original Message----- > From: Pavel.Bucek@... [mailto:Pavel.Bucek@...] > Sent: den 6 november 2009 11:02 > To: users@... > Subject: Re: Boolean 0 or 1 true or false > > google is your friend: > http://stackoverflow.com/questions/343669/how-to-let-jaxb-render-boolean > -as-0-and-1-not-true-and-false > > > Lulseged Zerfu wrote: >> Hi >> >> Thanks >> >> How can I give a direction so that it writes 0 and 1 instead of false > >> and true? >> >> Lulseged >> >> -----Original Message----- >> From: Pavel.Bucek@... [mailto:Pavel.Bucek@...] >> Sent: den 6 november 2009 10:35 >> To: users@... >> Subject: Re: Boolean 0 or 1 true or false >> >> Hello, >> >> XML spec says: >> >> "" >> 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}. >> "" >> >> so all values you mentioned are fine. >> >> Pavel >> >> >> >> Lulseged Zerfu wrote: >> >>> Hi >>> >>> We use jaxb to merge to xml files to one and see that 0's are >>> changed > >>> to false and 1's are changed to true in the output. >>> >>> In the xsd file we have the following declaration: >>> >>> <xs:element name="enableAM" type="xs:boolean" default="false" >>> minOccurs="0"> >>> <xs:annotation> >>> <xs:documentation>Use to configure saAmfCompAMEnable >>> mib object.</xs:documentation> >>> </xs:annotation> >>> </xs:element> >>> >>> In put <enableAM>0</enableAM> is output to <enableAM>false</ >>> enableAM> > >>> and <enableAM>1</enableAM> is output to <enableAM>true</enableAM>. >>> >>> >>> The xml document looks valid. JAXB never complains about 0's an 1's. >>> Gives output. >>> >>> What is correct? >>> >>> Lulseged >>> >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RE: Re: Boolean 0 or 1 true or falseI will thank you.
-----Original Message----- From: Ioannis Mavroukakis [mailto:imavroukakis@...] Sent: den 6 november 2009 11:43 To: users@... Subject: Re: Boolean 0 or 1 true or false Look in the list archives, I had a very similar query to this not too long ago :-) On 6 Nov 2009, at 10:41, Lulseged Zerfu wrote: > Thanks > > Who is not a friend of google? > > lulseged > > -----Original Message----- > From: Pavel.Bucek@... [mailto:Pavel.Bucek@...] > Sent: den 6 november 2009 11:02 > To: users@... > Subject: Re: Boolean 0 or 1 true or false > > google is your friend: > http://stackoverflow.com/questions/343669/how-to-let-jaxb-render-boole > an > -as-0-and-1-not-true-and-false > > > Lulseged Zerfu wrote: >> Hi >> >> Thanks >> >> How can I give a direction so that it writes 0 and 1 instead of false > >> and true? >> >> Lulseged >> >> -----Original Message----- >> From: Pavel.Bucek@... [mailto:Pavel.Bucek@...] >> Sent: den 6 november 2009 10:35 >> To: users@... >> Subject: Re: Boolean 0 or 1 true or false >> >> Hello, >> >> XML spec says: >> >> "" >> 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}. >> "" >> >> so all values you mentioned are fine. >> >> Pavel >> >> >> >> Lulseged Zerfu wrote: >> >>> Hi >>> >>> We use jaxb to merge to xml files to one and see that 0's are >>> changed > >>> to false and 1's are changed to true in the output. >>> >>> In the xsd file we have the following declaration: >>> >>> <xs:element name="enableAM" type="xs:boolean" default="false" >>> minOccurs="0"> >>> <xs:annotation> >>> <xs:documentation>Use to configure saAmfCompAMEnable >>> mib object.</xs:documentation> >>> </xs:annotation> >>> </xs:element> >>> >>> In put <enableAM>0</enableAM> is output to <enableAM>false</ >>> enableAM> > >>> and <enableAM>1</enableAM> is output to <enableAM>true</enableAM>. >>> >>> >>> The xml document looks valid. JAXB never complains about 0's an 1's. >>> Gives output. >>> >>> What is correct? >>> >>> Lulseged >>> >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |