April 18, 2009

0 WHAT IS XML

XML was designed to describe data and to focus on what data is.

HTML was designed to display data and focus on how data looks.


What you should already know in xml?

Before you continue you should have a basic understanding of the following

HTML/XHTML

JAVASCRIPT/VBSCRIPT

What is XML?

XML stands for EXtensible Markup Language

XML is a markup language much like HTML

XML was designed to describe data

XML tags are not predifined.You must define your own tags

XML uses a Document Type Definition (DTD) or an XML Schema to describe the data

XML with a DTD or XML Scehma is designed to be self-descriptive

XML is a W3C Recommendation

The Extensible Markup Language (XML) became a W3C Recommendation 10 Feb 1998.

THE Main difference between XML AND HTML

XML was designed to carry data.

XML is not a replacement for HTML.
XML and HTML were designed with different goals.

XML was designed to describe data and to focus on what data is.
HTML was designed to display data and focus on how data looks.

HTML is about displaying information, while XML is about describing information.

XML does not DO anything.

Maybe it is little hard ti understand, but XML does not DO anything.XML was created to structure, store and to send information.

The following exmaple is a note to abcd from Rasik, stored as XML:
<div class="codeview">

<note>
<to>Rasik</to>
<from>Bapotra</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</div>







Rasik
Bapotra
Reminder
Don't forget me this weekend!




The note has a header and message body.It also has sender and receiver information.But still, this XML document does not DO anything.It is pure information wrapped in XML tags.Someone must write a piece of software to send, receive or display it.

0 comments:

Post a Comment

Blogger Themes

 
Powered by Blogger