schema location: | C:\Documents and Settings\José Carlos Ramalho\Os meus documentos\XML Book Samples\agenda de contactos\agenda.xsd |
Elements | Complex types |
agenda | Tentrada |
Tgrupo |
diagram | |||
children | entrada grupo | ||
annotation |
|
||
source | <xs:element name="agenda"> <xs:annotation> <xs:documentation>Comment describing your root element</xs:documentation> </xs:annotation> <xs:complexType> <xs:choice maxOccurs="unbounded"> <xs:element name="entrada" type="Tentrada"/> <xs:element name="grupo" type="Tgrupo"/> </xs:choice> </xs:complexType> </xs:element> |
diagram | |||||||||||||||||||
type | Tentrada | ||||||||||||||||||
children | nome email telefone | ||||||||||||||||||
attributes |
|
||||||||||||||||||
source | <xs:element name="entrada" type="Tentrada"/> |
diagram | |||||||||||||
type | Tgrupo | ||||||||||||
children | entrada ref grupo | ||||||||||||
attributes |
|
||||||||||||
source | <xs:element name="grupo" type="Tgrupo"/> |
diagram | |||||||||||||||||||
children | nome email telefone | ||||||||||||||||||
used by |
|
||||||||||||||||||
attributes |
|
||||||||||||||||||
source | <xs:complexType name="Tentrada"> <xs:sequence> <xs:element name="nome" type="xs:string"/> <xs:element name="email" type="xs:string" minOccurs="0"/> <xs:element name="telefone"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="253-\d{6}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> <xs:attribute name="id" type="xs:ID" use="required"/> <xs:attribute name="tipo" type="xs:string" use="optional"/> </xs:complexType> |
diagram | |
type | xs:string |
source | <xs:element name="nome" type="xs:string"/> |
diagram | |
type | xs:string |
source | <xs:element name="email" type="xs:string" minOccurs="0"/> |
diagram | |||
type | restriction of xs:string | ||
facets |
|
||
source | <xs:element name="telefone"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="253-\d{6}"/> </xs:restriction> </xs:simpleType> </xs:element> |
diagram | |||||||||||||
children | entrada ref grupo | ||||||||||||
used by |
|
||||||||||||
attributes |
|
||||||||||||
source | <xs:complexType name="Tgrupo"> <xs:choice maxOccurs="unbounded"> <xs:element name="entrada" type="Tentrada"/> <xs:element name="ref"> <xs:complexType> <xs:attribute name="entref" type="xs:IDREF" use="required"/> </xs:complexType> </xs:element> <xs:element name="grupo" type="Tgrupo"/> </xs:choice> <xs:attribute name="gid" type="xs:ID" use="required"/> </xs:complexType> |
diagram | |||||||||||||||||||
type | Tentrada | ||||||||||||||||||
children | nome email telefone | ||||||||||||||||||
attributes |
|
||||||||||||||||||
source | <xs:element name="entrada" type="Tentrada"/> |
diagram | |||||||||||||
type | Tgrupo | ||||||||||||
children | entrada ref grupo | ||||||||||||
attributes |
|
||||||||||||
source | <xs:element name="grupo" type="Tgrupo"/> |