XML
documents are text files and can be created in any text editor. After
coding your XML document, you need a parser to interpret the document
code. XML parsers are strict and will produce an error if you've omitted
a tag, used an incorrect case or syntax. IE v. 5 above include MSXML
as the parser.
Their are two categories of XML document: well-formed or valid. A
well-formed XML document contains no syntax errors and complies with
the W3C XML specifications. A valid document is a well-formed document
that also complies with the rules specified in the DTD or schema.
A parser that can verify a valid document is known as a validating
parser. A parser that can verify only that a document is well-formed
is known as a nonvalidating parser.
With XML, it is possible to create markup languages known as XML
applications that work with specific types of documents by creating
a defined set of tag names known as a vocabulary. Chemists use CML
(Chemical Markup Language) that allows them to describe the chemical
structure of a molecule. Mathematicians use MathML. Using a predefined
vocabulary allows for cross-compatibility between different organizations,
applications and systems. To use an XML application, you need the
appropriate parser and a means to display the content in a useful
format. For custom XML, you'll use styles to provide the display format.