Created
September 30, 2014 09:26
-
-
Save labra/5baa81114865e6c8566f to your computer and use it in GitHub Desktop.
Example of XML Schema
This file contains hidden or 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
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:element name="pedido"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="producto" minOccurs="1" maxOccurs="200" | |
type="TipoProducto"/> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:complexType name="TipoProducto"> | |
<xs:sequence> | |
<xs:element name="nombre" type="xs:string"/> | |
<xs:element name="cantidad" type="xs:string"/> | |
<xs:element name="comentarios" type="xs:string"/> | |
</xs:sequence> | |
<xs:attribute name="codigo" type="xs:string"/> | |
</xs:complexType> | |
</xs:schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment