Skip to Content
Special Edition Using XML, Second Edition
book

Special Edition Using XML, Second Edition

by - et al. David Gulbransen
July 2002
Intermediate to advanced
864 pages
22h 32m
English
Que
Content preview from Special Edition Using XML, Second Edition

boolean

A boolean is a datatype that is used to represent the mathematical concept of binary-valued logic. Practically speaking, that translates to true and false.

The boolean type has a predefined value set of “true, false, 1, 0” where 1 is the same as true, and 0 is the same as false.

A boolean can be used when you need a datatype that represents a true condition or a false condition. For example, if you wanted to create an element called "attendance" for keeping track of meeting attendees:

<xs:element name="attendance" type="xs:boolean"/> 

In the instance document, the element could be either

<attendance>true</attendance> or <attendance>false</attendance> 

depending on whether the person in question had attended or not. Booleans are a very ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Pocket Reference, 3rd Edition

XML Pocket Reference, 3rd Edition

Simon St. Laurent, Michael Fitzgerald
Essential XML: Beyond Markup

Essential XML: Beyond Markup

Don Box, Aaron Skonnard, John Lam

Publisher Resources

ISBN: 078972748XPurchase book