The ID datatype is derived from the NCName type. : ID « XML Schema « XML Tutorial

Home
XML Tutorial
1.Introduction
2.Namespace
3.XML Schema
4.XPath
5.XSLT stylesheet
XML Tutorial » XML Schema » ID 
3.20.1.The ID datatype is derived from the NCName type.
<!-- schema -->
<xsd:element name="bank">
  <xsd:complexType>
   <xsd:complexContent>
    <xsd:extension base="xsd:anyType">
    <xsd:attribute name="degree" type="xsd:ID"/>
    </xsd:extension>
   </xsd:complexContent>
  </xsd:complexType>
</xsd:element>
<!-- instance document -->
<bank branch="412x">Northern</bank>
3.20.ID
3.20.1.The ID datatype is derived from the NCName type.
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.