Created
June 11, 2016 23:54
-
-
Save Fhernd/7128f5715b2a5fa588ffdacf01e35b4d to your computer and use it in GitHub Desktop.
Esquema de catálogo de productos. [OrtizOL]
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"?> | |
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:element name="Catalogo" nillable="true" type="CatalogoProducto" /> | |
<xs:complexType name="CatalogoProducto"> | |
<xs:sequence> | |
<xs:element minOccurs="0" maxOccurs="1" name="Nombre" type="xs:string" /> | |
<xs:element minOccurs="1" maxOccurs="1" name="FechaExpiracion" type="xs:date" /> | |
<xs:element minOccurs="0" maxOccurs="1" name="Productos" type="ArrayOfProducto" /> | |
</xs:sequence> | |
</xs:complexType> | |
<xs:complexType name="ArrayOfProducto"> | |
<xs:sequence> | |
<xs:element minOccurs="0" maxOccurs="unbounded" name="Producto" nillable="true" type="Producto" /> | |
</xs:sequence> | |
</xs:complexType> | |
<xs:complexType name="Producto"> | |
<xs:sequence> | |
<xs:element minOccurs="0" maxOccurs="1" name="NombreProducto" type="xs:string" /> | |
<xs:element minOccurs="0" maxOccurs="1" name="Descripción" type="xs:string" /> | |
<xs:element minOccurs="1" maxOccurs="1" name="Precio" type="xs:decimal" /> | |
<xs:element minOccurs="1" maxOccurs="1" name="Disponible" type="xs:boolean" /> | |
</xs:sequence> | |
<xs:attribute name="ID" type="xs:integer" /> | |
</xs:complexType> | |
<xs:element name="Producto" nillable="true" type="Producto" /> | |
</xs:schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment