xml, dtd y xsd
[curso-xml.git] / pelicula.xsd
1 <?xml version="1.0"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3 targetNamespace="http://www.w3schools.com"
4 xmlns="http://www.w3schools.com"
5 elementFormDefault="qualified">
6
7 <xs:element name="pelicula">
8     <xs:complexType>
9       <xs:sequence>
10         <xs:element name="titulo" type="xs:string"/>
11         <xs:element name="director" type="xs:string"/>
12         <xs:element name="fecha" type="xs:date"/>
13         <xs:element name="actores">
14             <xs:complexType>
15               <xs:sequence>
16                 <xs:element name="actor" minOccurs="1" maxOccurs="unbounded">
17                     <xs:complexType>
18                         <xs:attribute name="nombre" type="xs:string"/>
19                         <xs:attribute name="personaje" type="xs:string"/>
20                     </xs:complexType>
21                 </xs:element>
22               </xs:sequence>
23             </xs:complexType>
24         </xs:element>
25       </xs:sequence>
26     </xs:complexType>
27 </xs:element>
28
29 </xs:schema>