[Home] [By Thread] [By Date] [Recent Entries]

  • To: <xml-dev@l...>
  • Subject: What's difference between ref and type in XML schema
  • From: "Baisak, Ranjan" <ranjan_baisak@m...>
  • Date: Mon, 14 Mar 2005 17:39:52 +0530
  • Thread-index: AcT6bTU3FpRFKU59SsGlp9w6R6TTNwuIRbDA
  • Thread-topic: What's difference between ref and type in XML schema

I am bit confused regarding referring an element  and creating a data
type for an element and referring it.
E.g.
Referring by type
<xsd:element name="A" type="AType" maxOccurs="unbounded"/>
<xsd:complexType name="AType">
	..
</xsd:complexType>

Referring by element itself
<xsd:element ref="A" maxOccurs="unbounded"/>
<xsd:element name="A">
	<xsd:complexType>
	...
	</xsd:complexType>
</xsd:element>



regards,
-Ranjan

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member