feat(ch 4): added

This commit is contained in:
Rafa Muñoz
2024-09-27 14:28:05 +02:00
parent d622608575
commit 3f7e83baae
97 changed files with 1250 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="superheroe">
<xs:complexType mixed="true">
<xs:choice>
<xs:element name="nombre" type="xs:string"/>
<xs:element name="amigo" type="textoNoVacio" minOccurs="2" maxOccurs="unbounded"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:simpleType name="textoNoVacio">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>