Friday, February 27, 2009

What is XML?


XML is used to organize documents and business data. XML files can be stored or transmitted between two applications on a network. Basically, they are just plain text documents that contain special tags that label different parts of a document or fields of data.

XML is a framework for defining markup languages, there is no fixed collection of markup tags, and User can define their own tags. XML language is targeted at its own application domain, but the languages will share many features.Following is the sample XML codes:

<?xml version="1.0" encoding="UTF-8"?>
<lunch_menu>
<food>
<name>Cripsy Green Salads</name>
<price>$3.95</price>
<description>Cripsy Green Salads with Italian Dressing</description>
<calories>150</calories>
</food>
</lunch_menu>


<?xml version="1.0" encoding="UTF-8"?>
<contact>
<address>
<name>Oracle</name>
<street>111 Main Street</street>
<city>Santa Barbara</city>
<state>CA</state>
</address>
<phonenumber>
<areacode>814</areacode>
<number>345-6789</number>
</phonenumber>
</contact>

XML is the foundation of all the other webservices technologiesThere is only one version for XML XML1.0 which is managed by the World Wide Web Consortium (W3C).

0 comments:

Post a Comment

Followers

 

J2EE-webservices. Copyright 2009 All Rights Reserved by j2eewebservices.blogspot