Thursday, 21 November 2013

Extensible Markup Language (XML)

 Last post, we were discussing regarding HTML

Today were are going to teach you guys about XML or Extensible Markup Language.


What You Should Already Know

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

What is XML?

  • XML stands for Extensible Markup Language
  • XML is a markup language much like HTML
  • XML was designed to carry data, not to display data
  • XML tags are not predefined. You must define your own tags
  • XML is designed to be self-descriptive
  • XML is a W3C Recommendation

XML Does Not DO Anything

XML does not do anything. XML was created to structure, store, and transport information.
The following example is a note to Tove, from Jani, stored as XML:


<note>
< to>Tove</to>
< from>Jani</from>
<heading>Reminder</heading>
< body>Don't forget me this weekend!</body>
< /note>


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

Characteristics of XML

XML You Invent Your Own Tags
XML is Not a Replacement for HTML
XML is a W3C Recommendation
XML is Everywhere

some rules in doing XML
 
l  XML Syntax Rules
l  XML Tags are Case Sensitive
l  XML Elements Must be Properly Nested
l  XML Documents Must Have a Root Element
l  XML Attribute Values Must be Quoted
l  XML Elements are Extensible



XML documents can form a tree structure which is like this :


XML Documents Form a Tree Structure



 


bookstore  

book category
title lang
author
year
price
COOKING
Everyday Italian
Giada De Laurentiis

2005

30.00

CHILDREN

Harry Potter

J K. Rowling
2005

29.99

WEB

Learning XML

Erik T. Ray

2003
39.95
 
 
 
here some questions for you guys to test your knowledge ! quiz thank you.
 
 

No comments:

Post a Comment