This section provides a tutorial example on how to store XSD statements in an external file, which can be then linked to XML files. The external XSD file should also be a well-formed XML document.
XSD File: An XML file that contains XSD statements that define elements, attributes and entities of a schema for XML files.
Instead of including XSD statements inside an XML file, we can also store
XSD statements in an XSD file, and link the XSD file to the XML file.
Let's write our first XSD file to define a schema for our "Hello world!"
XML file. Here is the XSD file, hello.xsd: