Home | Add to Favorites | Ebooks Directory | News  
XML Programming
Home
XML  Article
XML Tutorial 
XML sample code
Books
XML Articles
XML & Java
XML Elements tutorial

XML is  the main language for exchanging financial information between businesses over the Internet. XML can be used to Share Data


 

With XML, plain text files can be used to share data.

XML data is stored in plain text format, and so it  provides a software- and hardware-independent way of sharing data.

XML can also be used to store data in files or in databases. Applications can be written to store and retrieve information from the store, and generic
applications can be used to display the data. XML can make your Data more Useful


 

XML can be used to Create new Languages

XML is the mother of WAP and WML.

The Wireless Markup Language (WML), used to markup Internet applications for handheld devices like mobile phones, is written in XML.

Illustration 2

XML documents use a self-describing and simple syntax.

<?xml version="1.0" encoding="ISO-8859-1"?>
<Mail>
<to>John</to>
<from>alice</from>
<heading>wake up</heading>
<body>Don't call me this weekend!</body>
</Mail>

The first line in the document - the XML declaration - defines the XML version and the character encoding used in the document. In this case the document
conforms to the 1.0 specification of XML and uses the ISO-8859-1 (Latin-1/West  European) character set.


 
The next line describes the root element of the document (like it was saying: "this document is a note"):

<Mail>

The next 4 lines describe 4 child elements of the root (to, from, heading, and
body):

<to>John</to>
<from>alice</from>
<heading>wake up</heading>
<body>Don't call me this weekend!</body>

And finally the last line defines the end of the root element:

</Mail>

 

                                                          Go To Index