Created
June 23, 2014 21:12
-
-
Save Fhernd/ff1ae92e9d46d8ceda35 to your computer and use it in GitHub Desktop.
Esquema para esquema de librería con XSD.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns="urn:libreria-schema" | |
elementFormDefault="qualified" | |
targetNamespace="urn:libreria-schema"> | |
<xsd:element name="libreria" type="tipoLibreria" /> | |
<xsd:complexType name="tipoLibreria"> | |
<xsd:sequence maxOccurs="unbounded"> | |
<xsd:element name="libro" type="tipoLibro" /> | |
</xsd:sequence> | |
</xsd:complexType> | |
<xsd:complexType name="tipoLibro"> | |
<xsd:sequence> | |
<xsd:element name="titulo" type="xsd:string" /> | |
<xsd:element name="autor" type="nombreAutor" /> | |
<xsd:element name="precio" type="xsd:decimal" /> | |
</xsd:sequence> | |
<xsd:attribute name="genero" type="xsd:string" /> | |
</xsd:complexType> | |
<xsd:complexType name="nombreAutor"> | |
<xsd:sequence> | |
<xsd:element name="nombre" type="xsd:string" /> | |
<xsd:element name="apellido" type="xsd:string" /> | |
</xsd:sequence> | |
</xsd:complexType> | |
</xsd:schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment