Hello Everybody,
Today, we are going to learn about another markup language called XML.
-stands for Extensible Markup Language.
-it is a markup language much like HTML.
-designed to carry data, not to display data
-must define your own tags, as it is not predefined.
-designed to be self-descriptive.
XML |
HTML
|
transport and store data. | display data |
focus on what data is | focus on how data looks |
XML is about carrying information | HTML is about displaying information |
It maybe hard to digest this information but the XML was not design to display, thus it does not really do anything. It was created to structure, store, and transport information.
The following is a good example of storage as XML. It is a note to Adam from Syafiq.
<note>
<to>Adam</to>
<from>Syafiq</from>
<heading>Just A Reminder</heading>
<body>Hakim is coming to your room tonight</body>
</note>
XML is a complement to HTML. It is not a replacement for HTML. In most web applications, XML is used to transport data, while HTML is used to format and display the data. In other words, XML is the calculator, HTML is the computer monitor to display that thing. Well, that might not be the most accurate example, but the understand the ironic.
to learn more about XML, you can visit this page
http://www.w3schools.com/xml/xml_whatis.asp (w3school.com)
That is all for today. With God's will, we will be able to continue our lesson in languages in out next meeting.
Have a nice day!!
No comments:
Post a Comment