14.7. What is XML?XML is the Extensible Markup Language. It is the universal format for structured information on the Web. XML is a markup language similar to HTML. Both are simple to write and use and both can be read by humans and by intelligent clients. Both are text formats. To understand XML and how it differs from HTML, let's step back and consider what we know about HTML:
XML, on the other hand, separates data from meaning. XML's characteristics include the following:
Figure 14-5 shows an XML snippet. Figure 14-5. An XML-based purchase orderThe root element of a purchase order document may have the tag <PurchaseOrder>. The tag describes the data it contains. A <price> element holds the price of an item. Because the tags define the items that they hold and because XML data is always structured, simple parsers can retrieve the data from an XML document. |