XML is used to store and Transfer Text Data as Values of the Elements and Attributes that can be defined by a common understanding between different entities(people, programs). The use of XML is to store text data and transfer data between those entities like lets say u have 2 programs one written in VB and other in
Java and u have to transfer data u can have VB prog writing data in an XML file and Java Prog reading that XML File, same way u can use a database, but of course both programs must know the elements and attributes they would encounter which would be either written in DTD or XSD and Both programs would have access to that DTD or XSD to know what hoe are supposed to get the XML data, this has given birth to many things as Web Services where one prog will query another prog and get data back thru
soap.
As far as Designing XML goes as long as entities can come up with a consensus of how the data would be stored, u can then design DTD/ XSD and then populate XML file with the data.
------------------
-AJ
Sun Certified Java Programmer
Microsoft Certified Software Developer