Notes about XML

Exmaple

<?xml version="1.0" encoding="UTF-8" ?> 
⬆️ XML file header

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
            ⬆️ Define the URI as the default namespace,
               which means all child elements without prefix belongs to it

         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            ⬆️ Define a prefix called `xsi`

         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                             http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
            ⬆️ Define a property `schemaLocation` to `xsi`
               1. first line is the namespace URI, which is a unique identifier
               2. second line points to the physical location of an XSD file,
                  detailing the structure and constrains that the XML doucument must follow
               3. it is crucial that the namespace URIs and their corresponding
                  XML Schema location URIs are defined in pairs and in order
         version="3.0">
</web-app>

Description