XML Tutorial
XML stands for eXtensible Markup Language.
XML is designed to transport and store data, not for displaying or presenting data; HTML is used for displaying data.
XML is important and easy to learn.
XML Example
The first line of an XML document starts with an XML declaration, which describes some information about the document, such as:
<?xml version="1.0" encoding="UTF-8"?>
XML defines structure, stores information, and transmits information.
XML Document Example
<?xml version="1.0" encoding="UTF-8"?>
<site>
<name>tutorialpro</name>
<url>https://www.tutorialpro.org</url>
<logo>tutorialpro-logo.png</logo>
<desc>Programming Learning Website</desc>
</site>
<name>, <url>, <logo>, and <desc> are tags that contain the information to be transmitted.
Tags must appear in pairs, with a start tag and an end tag, for example:
- Start tag:
<name>
- End tag:
</name>
XML Example
Learn by example! Using our editor, you can edit XML code and then click the test button to see the results.
XML Online Formatter
You can compress XML code online through XML Online Formatter: