i have gon through w3school about xml. i know what it is ext.but still not able to get idea how it is useful and anybody show the website example to show how xml is useful.thanks
It's useful if you want to store data with ten times the space and three times the verbosity you need. It's also useful if you want to transform your data with XSLT into other XML documents, but this time with twenty times the verbosity you'd get in any other language. XML is useful since it's simple and there are XML parsing libraries lying around waiting for you to use them, in many programming languages. Never mind that handy facilities for parsing and manipulating hierarchal expressions were built into Lisp more than a quarter century ago...
As a standard way of formatting data, it's best used for communication between foreign programs, and perhaps for human-readable configuration files. But it's not good to use an XML document as if it were a database, unless you enjoy slowing your computer down.
Reputation Points: 1135
Solved Threads: 172
Super Senior Demiposter
Offline 2,479 posts
since Jun 2005