Plantilla XSD

De FFAWiki

Plantilla

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">


<xs:element name="titol" type="xs:string"/>
<xs:attribute name="nom" type="xs:string"/>


<xs:element name="llibre">
<xs:complexType>
<xs:sequence>
<xs:element ref="titol" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="nom"/>
</xs:complexType>
</xs:element>

</xs:schema>