Home | Add to Favorites | Ebooks Directory | News  
XML Programming
Home
XML  Article
XML Tutorial 
XML sample code
Books
XML Articles
XML & Java
XML Illustration - Creation of an XML File

Illustartion 1

<Mail>
<to>john</to>
<from>alice</from>
<heading>wakeup</heading>
<body>hi lets go out </body>
</Mail>


 

The Mail has a header and a message body. It also has sender and receiver information. It is just pure information wrapped in XML tags. Someone must write a piece of software to send, receive or display it.

The tags used to mark up HTML documents and the structure of HTML documents are predefined. The author of HTML documents can only use tags that are defined in the HTML standard (like <p>, <h1>, etc.).


 

XML allows the author to define his own tags and his own document structure.

The tags in the example above (like <to> and <from>) are not def inedin any XML standard. These tags are "invented" by the author of the XML document.

With XML, the data is stored outside your HTML.

 When HTML is used to display data, the data is stored inside your HTML. With XML, data can be stored in separate XML files. This way you can concentrate on  using HTML for data layout and display, and be sure that changes in the underlying data will not require any changes to your HTML.

XML data can also be stored inside HTML pages as "Data Islands". You can still concentrate on using HTML only for formatting and displaying the data.  XML is used to Exchange Data

With XML, data can be exchanged between incompatible systems.

In the real world, computer systems and databases contain data in  incompatible formats. One of the most time-consuming challenges for developers has been to exchange data between such systems over the Internet.

 
Converting the data to XML can greatly reduce this complexity and create data that can be read by many different types of applications. XML and B2B
 

With XML, financial information can be exchanged over the Internet.

                                                          Go To Index