Created
December 3, 2014 19:42
-
-
Save labra/99aa09f41183ca034292 to your computer and use it in GitHub Desktop.
Ejemplo con XML Schema - pedido.xsd
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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:element name="pedido"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="producto" type="tipoProducto" maxOccurs="unbounded"/> | |
</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:integer" /> | |
</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