Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement