XSD and XML File - yibinericxia/documents GitHub Wiki
XSD (XML Schema Definition) defines the structure and content of XML documents as schema which an XML document need to follow. It also in XML format.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="notification">
<xs:complexType>
<xs:sequence>
<xs:element name="to" type="xs:string"/>
<xs:element name="from" type="xs:string"/>
<xs:element name="subject" type="xs:string"/>
<xs:element name="body" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
XML (Extensible Markup Language) defines a set of rules for encoding documents, such as elements and attributes, with tags in a hierarchical structure:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<notification>
<to>customer-dl</to>
<from>support-team</from>
<subject>Order Notification</subject>
<body>Your order received</body>
</notification>