XML Tutorial
XML stands for eXtensible Markup Language.
XML is designed to transport and store data, not to display or present data, unlike HTML which is used to display data.
XML is very 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 the 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>, <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 the XML Online Formatter: