Assigning an XML Schema to an XML File


Menu Command:   DTD/Schema > Assign Schema to XML File
Shortcuts:   DTD/Schema > Assign Schema to XML File
Note
  • xmlns="http://your_namespace" is the default namespace. Replace "http://your_namespace" with the default namespace you want to use. This declaration tells the XML parser that the elements used in the XML document come from the "http://your_namespace" namespace.
  • xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" tells the XML parser that the following attribute, schemaLocation, is in the XMLSchema-instance namespace.
  • xsi:schemaLocation="http://your_namespace C:\Test%20Files\new.xsd" tells the schema-validator that the "http://your_namespace" namespace in this example is defined by the file "new.xsd" located in the directory "C:\Test Files".


Workshop  Workshop

Working with XML Schemas