Data · 1 file
Sample XSD File
XML Schema Definition describes and validates XML documents. This schema validates our sample customer XML.
XSD · 1.3 KB
XML Schema (XSD)
An XSD that validates our sample customers XML: typed elements, required attributes and an unbounded sequence.
CC0 · free for any use · Verified by an independent tool · Report a problem
<?xml version="1.0" encoding="UTF-8"?>
<!-- Schema for sample-100-records.xml — samplefiles.com -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="customers">
<xs:complexType>
<xs:sequence>
<xs:element name="customer" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="first_name" type="xs:string"/>
<xs:element name="last_name" type="xs:string"/>
<xs:element name="email" type="xs:string"/>
<xs:element name="phone" type="xs:string"/>
<xs:element name="company" type="xs:string"/>
<xs:element name="job_title" type="xs:string"/>
<xs:element name="city" type="xs:string"/>
<xs:element name="country" type="xs:string"/>
<xs:element name="signup_date" type="xs:date"/>
<xs:element name="balance" type="xs:decimal"/>
</xs:sequence>
<xs:attribute name="id" type="xs:positiveInteger" use="required"/>
<xs:attribute name="active" type="xs:boolean" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>File details
Download from the command line
curl -L -o customers.xsd https://files.samplefiles.com/data/xsd/customers.xsdwget https://files.samplefiles.com/data/xsd/customers.xsdhttps://files.samplefiles.com/data/xsd/customers.xsdprintf '%s %s\n' 2312c6c06f57dc27137c858a9f5a8629328aa082e5a85680f7ca25f20324f7ec customers.xsd | shasum -a 256 -cOr check the download in your browser with the checksum calculator.