XML Tutorial
XML stands for eXtensible Markup Language)。
XML is designed to transport and store data, not to present and display data, while HTML is used to present data.
XML is important and easy to learn.
XML example
The first line of an XML document begins with an XML declaration, which states some information about the document, such as:
XML defines structure, stores information, and transports information.
XML document example
<
site
<
name
RUNOOB
name
<
url
https://www.runoob.com
url
<
logo
runoob-logo.png
logo
<
desc
Programming learning website
desc
site
Tags must appear in pairs; if there is a start tag, there must be an end tag, for example:
- Start tag:
- End tag:
XML example
Learn through examples! Using our editor, you can edit XML code and then click the test button to see the result.
XML online formatter
Pass XML online formatterXML code can be compressed and formatted online: