Question:
What is XML? How to use it?
anonymous
2011-01-14 00:46:12 UTC
Please explain me that what is XML and how to use it? and why should we use this markup language?
Five answers:
TANMAY S
2011-01-14 01:03:14 UTC
XML is used in many aspects of web development, often to simplify data storage and sharing.



XML Separates Data from HTML.

If you need to display dynamic data in your HTML document, it will take a lot of work to edit the HTML each time the data changes.With XML, data can be stored in separate XML files. This way you can concentrate on using HTML for layout and display, and be sure that changes in the underlying data will not require any changes to the HTML.With a few lines of JavaScript code, you can read an external XML file and update the data content of your web page.



XML Simplifies Data Sharing



In the real world, computer systems and databases contain data in incompatible formats.XML data is stored in plain text format. This provides a software- and hardware-independent way of storing data.This makes it much easier to create data that can be shared by different applications.



XML Simplifies Platform Changes



Upgrading to new systems (hardware or software platforms), is always time consuming. Large amounts of data must be converted and incompatible data is often lost.XML data is stored in text format. This makes it easier to expand or upgrade to new operating systems, new applications, or new browsers, without losing data.



XML Makes Your Data More Available



Different applications can access your data, not only in HTML pages, but also from XML data sources.With XML, your data can be available to all kinds of "reading machines" (Hand held computers, voice machines, news feeds, etc), and make it more available for blind people, or people with other disabilities.
quesans
2011-01-14 08:49:08 UTC
XML is used to keep the data externally. We can edit the XML by any text editor and easy to use on any operating system. All the coding languages are having different kind of parsing method of XML.



If you create any dynamic application using XML, you no need to publish the application again. Just editing the XML will reflect on application output.
?
2011-01-14 09:28:32 UTC
It differs from HTML ,because XML is used to store data in a hierarchical form ie tree structure . Dynamically XML can be created . XML is parsed by different languages like Coldfusion ,Php ,.net etc.

XML is used store configuration of database using coldfusion. DOM (Document Object Module) is the concept of XML.
?
2011-01-14 09:06:11 UTC
XML stands for eXtensible Markup Language.

XML is designed to transport and store data.

XML and HTML were designed with different goals:

* XML was designed to transport and store data, with focus on what data is

* HTML was designed to display data, with focus on how data looks



HTML is about displaying information, while XML is about carrying information.



aybe it is a little hard to understand, but XML does not DO anything. XML was created to structure, store, and transport information.



The following example is a note to Tove, from Jani, stored as XML:



Tove

Jani

Reminder

Don't forget me this weekend!





The note above is quite self descriptive. It has sender and receiver information, it also has a heading and a message body.



XML is used in many aspects of web development, often to simplify data storage and sharing.
anonymous
2011-01-14 09:04:13 UTC
Just log on to - www.xmlfiles.com/xml


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...