Advertisement
Fhernd

esquemaLibros.xsd

Jun 23rd, 2014
1,240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.03 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:libreria-schema" elementFormDefault="qualified" targetNamespace="urn:libreria-schema">
  3.     <xsd:element name="libreria" type="tipoLibreria" />
  4.     <xsd:complexType name="tipoLibreria">
  5.         <xsd:sequence maxOccurs="unbounded">
  6.             <xsd:element name="libro" type="tipoLibro" />
  7.         </xsd:sequence>
  8.     </xsd:complexType>
  9.     <xsd:complexType name="tipoLibro">
  10.         <xsd:sequence>
  11.             <xsd:element name="titulo" type="xsd:string" />
  12.             <xsd:element name="autor" type="nombreAutor" />
  13.             <xsd:element name="precio" type="xsd:decimal" />
  14.         </xsd:sequence>
  15.         <xsd:attribute name="genero" type="xsd:string" />
  16.     </xsd:complexType>
  17.     <xsd:complexType name="nombreAutor">
  18.         <xsd:sequence>
  19.             <xsd:element name="nombre" type="xsd:string" />
  20.             <xsd:element name="apellido" type="xsd:string" />
  21.         </xsd:sequence>
  22.     </xsd:complexType>
  23. </xsd:schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement