What Does Human-Readable Mean?
One of the most important features of XML is that it is
human-readable. But the depths of this are not all apparent. First I will cover
the obvious ones:
-
XML is text-based and can almost always be viewed with standard
tools such as Windows notepad and Unix less and printed on paper.
-
Element-type names are almost always words in some spoken
language.
-
Schemas and DTDs are a form of executable documentation of the
grammar for a language.
Beyond these are some issues that are more subtle.
-
XML encourages a fixed ordering of elements.
-
XML encourages nesting rather than links for expressing
hierarchy.
-
XML allows the use of element type names in your domain rather
than a fixed set representing predefined data types and data structures.
-
XML schema languages allow the use of a wide variety of syntactic
structures that are disallowed by more naive schema languages. This allows a
more natural "language modelling".
HTML rendition created using stylesheets by Wendell Piez of Mulberry
Technologies.
[up]|[home]