1 Elements and attributes
XML stores hierarchical data in custom tags. Every element must be closed and properly nested. Attributes add metadata inside the opening tag.
<?xml version="1.0" encoding="UTF-8"?>
<book id="b1">
<title>The Pragmatic Programmer</title>
<author>Andrew Hunt</author>
<year>1999</year>
</book>