El XSD es el siguiente:
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns='http://www.w3.org/2001/XMLSchema'>
<element name='quiniela'>
<complexType>
<sequence>
<element name='partido' minOccurs='1' maxOccurs='15' >
<complexType>
<sequence>
<element name='equipo' type='string' minOccurs='2' maxOccurs='2'/>
<element name='resultado' type='string' minOccurs='1'/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>
El XML que quiero validar es:
<?xml version="1.0" encoding="UTF-8"?>
<quiniela>
<partido>
<equipo>Madrid</equipo>
<equipo>Betis</equipo>
<resultado>1</resultado>
</partido>
<partido>
<equipo>Atletico de Madrid</equipo>
<equipo>Olula CF</equipo>
<resultado>2</resultado>
</partido>
</quiniela>
Probamos a validarlo y el XMLLint nos devuelve:
cvi0243:Clase 11 afharo$ xmllint --schema bloqueT2.4.1.xsd bloqueT2.4.1.xml
<?xml version="1.0" encoding="UTF-8"?>
<quiniela>
<partido>
<equipo>Madrid</equipo>
<equipo>Betis</equipo>
<resultado>1</resultado>
</partido>
<partido>
<equipo>Atletico de Madrid</equipo>
<equipo>Olula CF</equipo>
<resultado>2</resultado>
</partido>
</quiniela>
bloqueT2.4.1.xml validates
William Hill - Casinooland JP
ResponderEliminarWilliam Hill's online casino william hill gives players the opportunity to enjoy a betway safe, secure and secure gaming environment. Read our in-depth review here.Sports · Promotions · Contact 1xbet Us
Betmaster is a on line casino operator and an online bookmaker established in Estonia. The on line casino has a license from Curacao that guarantees the equity of the video games. What is extra, the on line casino makes use of the latest SSL-encryption that ensures safety and confidentiality for his or her clients. Like eSports, fantasy sports loved a following before, but it was the COVID-19 lockdown that saw bettors flocking to it in droves. Now, as many sports have resumed, followers have remained and are persevering with to enjoy both kinds of betting. Each enterprise model is completely different and jurisdictions have responded with licensing choices 1xbet that properly with|swimsuit} completely different needs and requirements.
ResponderEliminar