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
<
bodyDon't forget me this weekend!
body
note
What is XML?
- XML stands foreXtensible Markup Language (EXtensible Markup Language)
- XML is aMarkup language, much like HTML
- XML is designed todescribe data
- XML tags are not predefined. You need todefine your own tags.
- XML uses adocument type declaration(DTD) or XML Schema to describe data.
- XML with a DTD or XML Schema is designed to beself-describing.
- XML is a W3C standard
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