Goals of XML

When XML was developed, the inventors had some goals, and knowing those will help you understand why XML is what it is. These goals were, and still are, as follows:

  1. XML shall be straightforwardly usable over the Internet.

  2. XML shall support a wide variety of applications.

  3. XML shall be compatible with SGML. SGML, complicated as it is, is extremely important, and XML cannot afford to totally throw it out the window.

  4. It shall be easy to write programs that process XML documents. In this case, “easy” means a graduate student in computer science could write a program in two weeks that can process an XML document.

  5. The number of optional features in XML is to be kept to the absolute minimum, ideally zero.

  6. XML documents should be human-legible ...

Get Advanced JavaScript™: Insights and Innovative Techniques now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.