Search code examples
xmlweb-servicesxsd-1.1

when we create an xml file, where is the line that implements the xsd file?


im new to xml i have a questions: when we create an xml file, where is the line that implements the xsd file? i mean how we get the reference to an XML Schema ,i dont understand there is no line in xml defines the location of the xml schema in my local computer ?

<?xml version="1.0"?>

<note
xmlns="https://www.w3schools.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.w3schools.com/xml/note.xsd">
  <to>Tove</to>
  <from>Jani</from>
  <heading>Reminder</heading>
  <body>Don't forget me this weekend!</body>
</note>

Solution

  • The schema doesn't exist on your local computer. It exists at https://www.w3schools.com/xml/note.xsd.