473,598 Members | 3,369 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="unqualifi ed" type="xs:boolea n" />

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****@h eadfirst.co.uk
www.callofcthulhu.com
www.deadlandsgame.com

Nov 12 '05 #1
4 6162


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

<xs:attribute name="Enabled" form="unqualifi ed" type="xs:boolea n" />

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="unqualifi ed" type="xs:boolea n" />

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****@h eadfirst.co.uk
www.callofcthulhu.com www.deadlandsgame.com
-
"Martin Honnen" <ma*******@yaho o.de> wrote in message
news:uu******** ******@TK2MSFTN GP09.phx.gbl...


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

<xs:attribute name="Enabled" form="unqualifi ed" type="xs:boolea n" />

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****@h eadfirst.co.uk
www.callofcthulhu.com www.deadlandsgame.com
-
"Martin Honnen" <ma*******@yaho o.de> wrote in message
news:uu******** ******@TK2MSFTN GP09.phx.gbl...


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

<xs:attribute name="Enabled" form="unqualifi ed" type="xs:boolea n" />

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
6904
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 a type mismatch. It is positively because of the boolean(java primitive)parameter. It goes fine if I change this parameter to int or String. This inteface has a lot more methods which works fine, it is just the
15
2315
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
43960
by: FrancisC | last post by:
how to define Boolean in C ? boolean abc; ??? is it default as True or False??
8
3254
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. Sauper, Jr. President Sauper Associates, Inc.
10
13811
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 Nothing). But Boolean is a Structure in VB.NET (defined to False by default) and not an Object so I'm afraid there's no way to do what I want without any workaround. Can you confirm that there's no object version of Boolean in VB.NET? Thanks
2
14762
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. found out there is no boolean type in Oracle parameter in OracleType. How can I get the returned value from function call in my code? Thanks in advance
16
3237
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
8790
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: org.w3c.dom.DOMException: NOT_SUPPORTED_ERR: The implementation does not support the requested type of object or operation. at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source) at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
3
3953
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) debugging instead of this dialog box. ************** Exception Text ************** System.FormatException: String was not recognized as a valid Boolean.
14
9486
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 as if they were logical operators: bool a = 5, b = 6; if (a == b) DoSomething; /* This will execute */ What type is commonly used in C for playing around with boolean
0
7991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7902
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8395
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8265
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6719
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5850
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5438
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3898
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1504
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.