What is XML ?XML is a markup languange that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. is a markup language designed to give a great amount of flexibility in marking up and passing around arbitrary data. In the other word, it is called as Extensible Markup Language. XML is used to transport and to store data.
XML is different from HTML which HTML describes the content of a Web page (mainly text and graphic images) only in terms of how it is to be displayed and interacted with. For example, the letter "p" placed within markup tags starts a new paragraph. XML describes the content in terms of what data is being described. For example, the word "phonenum" placed within markup tags could indicate that the data that followed was a phone number. The other different HTML uses <html> as the opening while XML use <note>. But don't worry because XML is simpler than HTML.
To do the XML it must be started with <note> which I mentioned before or you can put any word that can be as a main thing. Then start to put description and the content and close the description. As example. <to>Jenny</to>. As i said the description is the one that have '< >' and the content is 'Jenny'. You can put any word that you want to describe the informations that you want to display.And at the end of it you must put </note>. But still XML does not do anything. It is just informations that wrapped in tags. You must have a piece of software to display, send or receive it.
This is an easy example about xml.:
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
As you are getting more understand about the XML. This is the example of more complex XML.
Here are the differences between XML and HTML:
HTML | XML |
To display data with focus on how data looks. | To transport and store data, with focus on what data is. |
Case insensitive | Case sensitive |
Presentation language | Neither programming language nor prensentation language. |
To learn more about XML, here is the link . That's all from us which is the Imperius. Hope that you as reader can completely understands and applied it in your life. :) Assalammualaikum w.b.t.
No comments:
Post a Comment