5.1. An introduction to XML and XSLT

5.1.1. What is XML?

Extensible Markup Language (XML) is similar to XHTML and is used to develop documents or pages used on the World Wide Web. They both share the same structure and the main components of the language are elements. Unlike XHTML, which is designed for formatting and displaying a document, the main purpose of an XML page (or document) is to describe the data structure and relationships of the elements (XML elements) involved. Because of that, XML is more abstract, general, and more powerful in the sense that it is extensible. Extensible means XML has no predefined elements. In other words, you can create your own elements and attributes in an XML document. In fact, when you develop an XML ...

Get Practical Web Technologies 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.