I am interested in knowing more about the process that allows the XML files to actually locate the schema that validates it. I'm asking after testing three different xml headers (below) and noticing that the schema correctly validates with any variant.
XML Header 1:
<root xmlns="http://www.website.com/yolo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
XML Header 2:
<root xmlns="http://www.website.com/yolo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.website.com/yolo http://www.website.com/yolo
"
>
XML Header 3:
<root xmlns="http://www.website.com/yolo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.website.com/yolo /u/me/folder/yolo.xsd
"
>