XML Tutorial


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

XML is designed to transmit and store data, not to render and display data; HTML is used to render data.

XML is very important and easy to learn.

Start learning XML now!


XML Examples

The first line of an XML document begins 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 structures, stores information, and transmits information.

XML Document Example

<?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>They 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:

  • 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

ThroughXML Online FormatterCan compress and format XML code online:

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

Other Extensions