This course is structured so that you can focus on learning one specific schema language, or any combination of the three. Each schema language is covered as a stand-alone unit, and you don’t have to go through all three sections if you only need to learn about one language.
Each unit will be structured similarly, and will contain the following:
- An introduction to the specific schema language
- Creating element declarations
- Creating attribute declarations
- Additional content that may be specific to each individual schema language
- Associating the schema with an XML document
- Validating an XML document using the schema
For each section of XML: Schemas, you’ll be taking on the role of a human resources employee that’s responsible for maintaining a list of job postings, saved as an XML document. As part of that role, you’re also responsible for creating a schema to help ensure the job posting document’s elements are used properly.
Software needed for the course
XML schemas can be written in any number of programs, including text editors, code editors, and XML editors. This course will make use of a code editor, which will highlight the code added to the document and highlight any coding errors. Examples of code editors include the following:
- Notepad++ (Windows)
- Brackets (Windows, MacOS, Linux)
- BBEdit (Mac0S)
While this course was developed using Notepad++, the instructions should work the same in any of the code editors listed, as well as in code editors developed for mobile devices. You can also use a plain text editor to work through the content, such as Notepad on Windows or TextEdit on MacOS.
NOTE: While Notepad++ and Brackets will highlight XML Schema Language and Relax NG Schema markup and show code errors, these code editors won’t do the same for DTD markup. If you prefer to work in an editor that will highlight DTD markup and indicate errors, you may want to use a dedicated XML editor like oXygen XML Editor. For information on how to set up an XML project in oXygen XML Editor, view the page Setting up a new project in oXygen XML Editor.