XML Tutorial


XML stands for Extensible Markup Language (eXtensible Markup Language)。

XML is designed to transport and store data, not to present or display data, while HTML is used to present data.

XML is important and easy to learn.

Start learning XML now!


XML Examples

The first line of an XML document starts with an XML declaration, which is used to describe some information about the document, such as:

<?xml version="1.0" encoding="UTF-8"?>

XML defines structure, stores information, and transmits information.

XML Document Examples

<?xml version="1.0" encoding="UTF-8"?> <site> <name>EXAMPLE</name> <url>https://www.example.com</url> <logo>example-logo.png</logo> <desc>Programming learning website</desc> </site>

<name>、<url>、<logo>、<desc>These are tags, and the tags contain the information to be transmitted.

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

  • Start tag:<name>
  • End tag:</name>

XML Examples

Learn by examples! With our editor, you can edit XML code, then click the test button to view the result.

Try it yourself!


XML Online Formatter

ViaXML Online FormatterYou can compress and format XML code online:

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

Other extensions