← Prev in month ← Prev in thread

What's difference between ref and type in XML schema

From
Baisak, Ranjan <>
To
Date
2005-03-14T12:09:52Z
ID
<>
Thread
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
← Prev in month ← Prev in thread