Wednesday, October 30, 2013

ComE anD LEaRn XML!!

Assalamualaikum... Hi there! So let's take a look at this post.
Do you know what is XML? People usually know what is HTML right? Then today I will briefly explained about XML. Spend your time for a while here :)


XML was designed to describe data and focus what data is. XML stand for Extensible Markup Language. It is like HTML but they are not the same things. Some differences that I recognize between his two languages are shown as follow in this table below.





TYPEHTMLXML
DifferencesDesigned to display data,focus on how data looksDesigned to transport and store data,focus on what data is
Display informationCarrying information
Case insensitiveCase sensitive
Does not preserve white spacePreserve white space


Now you can see the differences right? 
Then let us look into another point about XML. For your information, XML documents form a tree structure. It must contain root element and we call this element as a parent. The tree start at the root and branches to the lowest level of the tree. Besides, all element can have sub elements(child elements). Let me show you an example below : 

<root>
 <child>
 <subchild>...</subchild>
</child></root>


tree structure#1
tree structure#2
Fuh, XML is quite interesting right? :)

Some of there syntax rules of XML are:
a)all elements must have a closing tags
b)XML tags are case sensitive
c)XML elements must be properly nested
d)XML documents must have a root element
e)XML attributes values must be quoted

XML also have its own rules to name the elements. 
  • can contain letters, numbers and other characters
  • cannot start with a number or punctuation characters
To make you more understand about this, I kindly prefer some links that will explain more to you about this. Here I attach some interesting links for you. 



So, hows about it? Did you enjoy learning XML with me?
Feel free to visit this site for more information about XML.

Hey, come here and learn with me! What is XML??

That is from me. Hope you will get some ideas about XML now.
:)
May we meet again. Bye...

No comments:

Post a Comment