An element may be named and defined locally. : element « XML Schema « XML Tutorial

Home
XML Tutorial
1.Introduction
2.Namespace
3.XML Schema
4.XPath
5.XSLT stylesheet
XML Tutorial » XML Schema » element 
3.89.2.An element may be named and defined locally.
<xsd:schema
  targetNamespace=
  "http://www.java2s.com/namespace/employees"
  xmlns="http://www.java2s.com/namespace/employees"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  elementFormDefault="qualified">

  <xsd:element name="employees">
   <xsd:complexType>
    <xsd:sequence>
     <xsd:element name="firstName" type="xsd:string"/>
     <xsd:element name="middleName" type="xsd:string"/>
     <xsd:element name="lastName" type="xsd:string"/>
    </xsd:sequence>
   </xsd:complexType>
  </xsd:element>

</xsd:schema>
3.89.element
3.89.1. Declarations
3.89.2.An element may be named and defined locally.
3.89.3.An element may be named and defined globally.
3.89.4.Element Declarations
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.