/*Mostly in reponse to Mr. Brunt's posting. *//*Edited to reflect Gil's point below;
Gil - sincere thanks for spotting some very poor phrasing on my part */
Please allow me to try to describe what XML is for with reference to HTML. I will start by making two statements:
1. HTML as it now is is used to instruct a browser how to render something on a page to which a tag has been applied.
2.XML is about describing information. It is a data description language.
XML does not DO anything per se 'nor was it designed to. Its sole purpose in life, (so to speak) is to
1. structure
2. store
3. send
information.
That's all - nothing else. Imagine that I wish to send a message to crispy. The message stored in xml might look something like this:
<notelet>
<to>crispy</to>
<from>gorilla</from>
<exclamation>Hey great thread !</exclamation>
<body>Man oh man you've really got a ball rolling :-) </body>
</notelet>
Now what does the note have? Well it has these:
1. a header
2. a message body
3. sender info
4. recipient info
*But* the document isn't doing anything. It is merely information wrapped in XML tags.
Somebody must write software that will:
1. send it
2. receive it
3. display it
But that is easily done by a moderately talented programmer. You'll notice that I didn't use HTNL tags in the example above. Why not? It is because there is no such thing as a predefined XML tag - I invented my own I could do it because XML is extensible.
Hej?
Well in HTML the tags used and therefore the structure of HTM documents *are* predefined. If you author HTML documents you can *only* use tags defined in the HTML standard.
Now from this I think that you will see that XML is complementary to HTML not a replacement to it.
My prediction if I may stick my head out for walloping is that if XML takes off that that it will be used as a DDL (data description language) while HTML will continue to be used to while HTML will be used to format (and display) the *same* data.
Think of XML as a truly independent tool for describing and transmitting information and you have grasped it.
PS: I am sorry that this posting is so long.
PPS: Standards are important - but they are a tool a means to an end.
/* orignial and badly phrased
[1. HTML was designed to display data its focus is on on how data looks. Therefore HTML is dealing with displaying information.]
*/
------------------
Hope this helps :-)
Gorilla
aka Mark Saunders
http://www.computerdriving.com
marksaunders@techie.com
[This message has been edited by gorilla (edited 06-12-2001).]
[This message has been edited by gorilla (edited 06-12-2001).]