XML validator against XSD schema |
||
This service validates the XML document against the specified XSD schema. An XML document contains elements, attributes, and values of primitive data types. For example: <?xml version="1.0" encoding="UTF-8"?> <Students> <Name>Lester Smith</Name> <Phone>0123987654</Phone> <Address> 415 Wishing Bend, 35639 Kenbridge, Utah </Address> <Dob>2002-09-24</Dob> </Students> An XSD schema describe the structure of an XML document. For example: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="Students"> <xs:complexType> <xs:sequence> <xs:element name="Name" type="xs:string" /> <xs:element name="Phone" type="xs:integer"/> <xs:element name="Address" type="xs:string"/> <xs:element name="Dob" type="xs:date" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> The XML validator first checks whether the XML document is a well-formed one and only then does it validate the XML document against the XML schema. The validator will report fatal errors, non-fatal errors and warnings. If no XSD schema is specified the validator only checks if the XML document is well-formed. A more complex XML document and and it's accompanied XSD schema can be found here:
|