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

XML Tutorial

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.

Start learning XML now!


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

、 、 、 are tags respectively, and the tags contain the information to be conveyed.

Tags must appear in pairs; if there is a start tag, there must be an end tag, for example:

XML example

Learn through examples! Using our editor, you can edit XML code and then click the test button to see the result.

Try it!

XML online formatter

Pass XML online formatterXML code can be compressed and formatted online:

https://www.jyshare.com/front-end/710/