home / experts / javascript / column100 |
|
The proliferation of XML in many Web applications can be explained, among other factors, by its added information compared with HTML. HTML has become the standard for presenting information on the Web. HTML tags, however, do not contain any information about the data. Look at the following HTML example:
In this example,
Information in HTML is usually stored in its final form. If you need to present the same Web page in two different ways, you need to create two different HTML pages, each storing the same data. Information in XML, on the other hand, can be presented in a multitude of ways for different target audiences. XML parsers are used to interpret the data. Another difference between HTML and XML is that unlike HTML, XML provides no formatting information. In HTML, the tag name discloses its format. For example, you expect text within an |
Next: How to interpret XML code
Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: December 31, 2001
Revised: December 31, 2001
URL: http://www.webreference.com/js/column100/2.html