Total Pageviews

Thursday, 28 March 2013

XML

XML and HTML were designed with different goals:
•       XML was designed to transport and store data, with focus on what data is
•       HTML was designed to display data, with focus on how data looks
•       HTML is about displaying information, while XML is about carrying information.
•       Maybe it is a little hard to understand, but XML does not DO anything.

Example has sender and receiver information

•       XML was created to structure, store, and transport information.

<Letter>
<to>                      The Principal                      </to>
<from> A. Ram Prathap Reddy   </from>
<heading>          Application                                         </heading>
<body>                h----------------------------               </body>
</Letter>
In XML we can create our own tags  (like <to> and <from>)
That is because the XML language has no predefined tags.

No comments:

Post a Comment