Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XML Guide

XML Guide


XML - EXtensible Markup Language

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

XML document example

<

note

<

to

Tove

to

<

from

Jani

from

<

heading

Reminder

heading

<

body

Don't forget me this weekend!

body

note


What is XML?


XML does not do anything

XML does nothing. XML creates structure, stores, and carries information.

The XML document example above is a note written in XML from Jani to Tove. Note the heading and the body of the message. It also has information about where it is from. But this XML document does not do anything. It is just pure information wrapped in XML markup. Someone must write software to send, receive, or display it:

| MESSAGE

To: Tove
From: Jani

Don't forget me this weekend!

| | --- |


XML tags are not predefined

XML tags are not predefined; you must "invent" your own tags.

The tags used to mark HTML documents are predefined; HTML file authors can only use tags defined in the HTML standard (such as

,

etc.).

XML allows authors to define his/her own tags and his/her own document structure.

In the example above (like and) the tags are not defined in any XML standard. These tags were "invented" by the XML document author.

View an XML CD catalog

View an XML plant catalog

View an XML food menu

How to learn XML?

Study our complete XML tutorial