The boolean datatype is used for binary logic (true/false) : boolean « XML Schema « XML Tutorial

Home
XML Tutorial
1.Introduction
2.Namespace
3.XML Schema
4.XPath
5.XSLT stylesheet
XML Tutorial » XML Schema » boolean 
3.4.1.The boolean datatype is used for binary logic (true/false)
<!-- schema -->
<xsd:element name="choose" default="true" type="xsd:boolean"/>

<!-- instance document, using default value -->
<choose/>

<!-- instance document, not using default value -->
<choose>false</choose>
3.4.boolean
3.4.1.The boolean datatype is used for binary logic (true/false)
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.