This tutorial introduced you to XML and helped to explain how it came to be as well as how it fits into the future of the Web. You also learned that XML has considerable value beyond its impact on HTML. This tutorial, although admittedly not very hands on, has given you enough knowledge of XML to allow you to hit the ground running and begin creating your own XML documents in the next tutorial.
Q&A
Q. |
Why isn't it possible to create custom tags in HTML, as you can in XML? |
A. |
HTML is a markup language that consists of a predefined set of tags that each has a special meaning to web browsers. If you were able to create custom tags in HTML, web browsers wouldn't know what to do with them. XML, on the other hand, isn't necessarily tied to web browsers, and therefore has no notion of a predefined set of tags. When you do tie an XML document to a web browser, you typically couple it with a style sheet that styles or transforms the XML data into a format more easily displayed in the browser. |
Q. |
Is it necessary to create a new XML-based markup language for any kind of custom data that I'd like to store? |
A. |
No. Although you may find that your custom data is unique enough to warrant a new markup language, you'll find that a variety of different XML-based languages are already available. In fact, most major industries have developed or are working on standardized markup languages to handle the representation of industry-specific data. OFX (Open Financial eXchange) is a good example of an industry-specific markup language that is already being used widely by the financial industry. Additionally, you may find that your XML needs are so simple that you can format data in XML without the formality of creating your own full-blown XML language. |