473,503 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Boolean value using XSD/XML

Hello,

I've created an XSD file with the following in it:

<xs:attribute name="Enabled" form="unqualified" type="xs:boolean" />

I am trying to set the XML to match this format, but how/what is the format
for a boolean value?

E.g. <..name.. Enabled=??? />

What do I put in the ??? to represent a TRUE/FALSE value?

Hope this makes sense.

Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
www.callofcthulhu.com
www.deadlandsgame.com

Nov 12 '05 #1
4 6145


Simon Jefferies wrote:
I've created an XSD file with the following in it:

<xs:attribute name="Enabled" form="unqualified" type="xs:boolean" />

I am trying to set the XML to match this format, but how/what is the format
for a boolean value?

E.g. <..name.. Enabled=??? />

What do I put in the ??? to represent a TRUE/FALSE value?


Use
<elementname Enabled="true" />
It is also allowed to use
<elementname Enabled="1" />
if my recollection is correct.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 12 '05 #2


Simon Jefferies wrote:
I've created an XSD file with the following in it:

<xs:attribute name="Enabled" form="unqualified" type="xs:boolean" />

I am trying to set the XML to match this format, but how/what is the format
for a boolean value?

E.g. <..name.. Enabled=??? />

What do I put in the ??? to represent a TRUE/FALSE value?


Use
<elementname Enabled="true" />
It is also allowed to use
<elementname Enabled="1" />
if my recollection is correct.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 12 '05 #3
Thanks, "true" works!

Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
www.callofcthulhu.com www.deadlandsgame.com
-
"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:uu**************@TK2MSFTNGP09.phx.gbl...


Simon Jefferies wrote:
I've created an XSD file with the following in it:

<xs:attribute name="Enabled" form="unqualified" type="xs:boolean" />

I am trying to set the XML to match this format, but how/what is the
format for a boolean value?

E.g. <..name.. Enabled=??? />

What do I put in the ??? to represent a TRUE/FALSE value?


Use
<elementname Enabled="true" />
It is also allowed to use
<elementname Enabled="1" />
if my recollection is correct.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 12 '05 #4
Thanks, "true" works!

Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
www.callofcthulhu.com www.deadlandsgame.com
-
"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:uu**************@TK2MSFTNGP09.phx.gbl...


Simon Jefferies wrote:
I've created an XSD file with the following in it:

<xs:attribute name="Enabled" form="unqualified" type="xs:boolean" />

I am trying to set the XML to match this format, but how/what is the
format for a boolean value?

E.g. <..name.. Enabled=??? />

What do I put in the ??? to represent a TRUE/FALSE value?


Use
<elementname Enabled="true" />
It is also allowed to use
<elementname Enabled="1" />
if my recollection is correct.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6886
by: Eyal | last post by:
Hey, I would appriciate if anyone can help on this one: I have a java object/inteface having a method with a boolean parameter. As I'm trying to call this method from a javascript it fails on...
15
2298
by: F. Da Costa | last post by:
Hi all, Following two sniperts of code I'm using and getting very interesting results from. ..html <tr id="1" class="segment" open="false"> This is the segment under 'investigation' ..js
8
43955
by: FrancisC | last post by:
how to define Boolean in C ? boolean abc; ??? is it default as True or False??
8
3243
by: Metro Sauper | last post by:
Why is the default text representation for booleans in C# 'True' and 'False' whereas in xml it is 'true' and 'false'? It seems like it would make sense to have them both the same. Metro T....
10
13795
by: Henri | last post by:
In java for instance there's a way to use booleans as objects and not as value types. I would like to do the same in VB.NET so that I can check if the boolean has been explicitely defined (is not...
2
14750
by: John | last post by:
My application needs to call Oracle function using oracle client 9.2. The oracle function returns boolean value from its returned parameter. The name space that I used is system.data.oracleclient....
16
3222
by: Shawnk | last post by:
I would like to perform various boolean operations on bitmapped (FlagsAttribute) enum types for a state machine design as in; ------------------- enum portState { Unknown, Open,
10
8770
by: Simon Brooke | last post by:
The DOM API has included public Node importNode(Node,boolean) as a method of the Document interface for a long time. Does anything actually implement it? Xerces 2 is giving me: ...
3
3945
by: c2 | last post by:
hi, i face a problem when click the icon , my login will prompt this message String was not recognized as a valid Boolean See the end of this message for details on invoking just-in-time (JIT)...
14
9476
by: Martin Wells | last post by:
I come from C++, and there's a type called "bool" in C++. It works exactly like any other integer type except that when promoted, it either becomes a one or a zero, so you can you bitwise operators...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5594
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5022
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
399
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.