mirror of
https://gitlab.com/tutorial-java-rafa-munoz/tutorial-java-2024-25/LMSGI-2024-25.git
synced 2025-11-09 18:03:06 +01:00
feat(ch 4): added
This commit is contained in:
13
Unidad_04_DTD_XSD/XSD/xml-xsd-10-choice.xsd
Normal file
13
Unidad_04_DTD_XSD/XSD/xml-xsd-10-choice.xsd
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<xs:element name="superheroe" type="caracSuperheroe"/>
|
||||
|
||||
<xs:complexType name="caracSuperheroe">
|
||||
<xs:choice>
|
||||
<xs:element name="nombre" minOccurs="0" maxOccurs="unbounded" type="xs:string" />
|
||||
<xs:element name="edad" type="xs:string" />
|
||||
<xs:element name="bando" type="xs:string" />
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
|
||||
</xs:schema>
|
||||
Reference in New Issue
Block a user