Free Online XML Validator Against XSD Schema - FreeFormatter.com
XSD Input:
XML Input:
--
XSD Input:
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified"> <xs:element name="zoo"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="animals"> <xs:complexType> <xs:sequence> <xs:choice maxOccurs="unbounded" minOccurs="0"> <xs:element name="fox" type="xs:string"/> <xs:element name="wolf" type="xs:string"/> <xs:element name="lion" type="xs:string"/> <xs:element name="bear" type="xs:string"/> </xs:choice> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
XML Input:
<?xml version="1.0" encoding="UTF-8"?> <zoo> <animals> <fox>Eve</fox> <wolf>Buffy</wolf> <bear>Mario</bear> <lion>Ace</lion> <bear>Maximus</bear> </animals> </zoo>
--
- XSD — умный XML / Хабрахабр
- Is the XML Schema xsd:choice Element Redundant?
- xs:sequence, xs:choice, xs:all
- "Sequence" from "choice"
- maxOccurs on choice and sequence
- http://www.w3schools.com/schema/el_choice.asp
- http://www.w3schools.com/schema/el_sequence.asp
- http://www.w3schools.com/schema/el_all.asp
- XML-СХЕМА. ЧАСТЬ 0: ПРИМЕР