SyntaxStudy
Sign Up
XML Beginner 7 min read

Introduction to XML

XML (eXtensible Markup Language) is a markup language designed to store and transport data in a human-readable and machine-readable format. Unlike HTML which focuses on displaying data, XML focuses on describing and transporting data.

XML is used in web services (SOAP), configuration files, office documents (DOCX, XLSX), RSS feeds, and SVG graphics.

Example
<?xml version="1.0" encoding="UTF-8"?>
<!-- XML Declaration and root element -->
<bookstore>
  <book category="fiction">
    <title lang="en">The Great Gatsby</title>
    <author>F. Scott Fitzgerald</author>
    <year>1925</year>
    <price>12.99</price>
  </book>
  <book category="technical">
    <title lang="en">Clean Code</title>
    <author>Robert C. Martin</author>
    <year>2008</year>
    <price>35.00</price>
  </book>
</bookstore>