Sie sind auf Seite 1von 8

XML

(EXtensible Markup Language)

Difference between XML & HTML


XML XML was designed to describe
data and to focus on what data is.
XML is about describing information

HTML
HTML was designed to display data and to focus on how data looks
HTML is about displaying information

XML is not a replacement for HTML.

XML Does not DO Anything


XML was created to structure, store and to send information. <note> <to> Seeta </to> <from> Geeta </from> The note has a header and a message body It also has sender and receiver information. It is just pure information wrapped in XML tags. Someone must write a piece of software to send, receive or display it.

<heading> Reminder </heading>


<body> Hello !!! </body> </note>

XML is Free and Extensible


XML was created to structure, store and to send information. XML tags are not predefined. You must "invent" your own tags. The tags used to mark up HTML documents and the structure of HTML documents are predefined. The author of HTML documents can only use tags that are defined in the HTML standard (like <p>, <h1>, etc.).
XML

allows the author to define his own tags and his own document structure. The tags in the example (like <to> and <from>) are not defined in any XML standard. These tags are "invented" by the author of the XML document.

XML is a Complement to HTML


XML is not a replacement for HTML. In future Web development it is most likely that XML will be used to describe the data, while HTML will be used to format and display the same data.

XML is a cross-platform, software and hardware independent tool for transmitting information.

How to Use XML ?


XML can Separate Data from HTML With XML, your data is stored outside your HTML. changes in the underlying data will not require any changes to your HTML.

XML data can also be displayed inside HTML pages. XML is Used to Exchange Data With XML, data can be exchanged between incompatible systems

XML Can be Used to Share & store Data


With XML, plain text files can be used to share data. Since XML data is stored in plain text format, XML provides a software- and hardware-independent way of sharing data. XML Can be Used to Store Data With XML, plain text files can be used to store data. Since XML is independent of hardware, software and application, you can make your data available to other than only standard HTML browsers.

eXtra Modern LinkExample Markup LanguageX-Markup LanguageeXtensible Markup Language

Das könnte Ihnen auch gefallen