Validating with xml schema
At this point, you can click the OK button and you'll be returned to the XML Catalog Preferences dialogue box, this time showing the new User Specified entry: Note that you can edit and remove the entry you just made if you find that something went wonky.
We only need this one catalog mapping for the collection_1.0label, so click OK and let's try it out.
The second label in the test file package, hi173794441_9080000_001_rr.xml, references mock-ups for three local namespaces.
The schemas for these namespaces are included in the test file package in the Dictionaries/ subdirectory.
Add XML catalog entries for these schemas and you can see a more complex validation at work in this product label.
Extensible Markup Language (XML) is used to describe data.
XML Catalog files provide a map from logical references in the schema and label files to physical copies of the defining PDS4 schemas that you've stashed in a directory somewhere on your system.
Let's start by opening the collection_1.0file (double-click it or whatever).We want to add a reference to the PDS4 master schema which we know is in our current workspace, so click the Workspace button, navigate down into the Schema folder and select the PDS4_PDS_0800file. button and select the file by navigating to it in the usual way.Either method will work, the point being that you can have a local schema repository that is not part of your personal workspace - a handy thing for group development.) It does matter which of the files you select.When you do that, you'll see a warning in the Problems pane below the editing pane: This is eclipse telling you that it can't do much validating unless you tell it what to validate against.Since we have the PDS4 master schema that we want to validate against, now's the time to set up an XML Catalog entry so eclipse can turn that namespace reference into a schema file location.
XML Catalog information is configured as one of the items in the Window- Eclipse maintains the XML catalog internally, so we'll be adding single entries to it via this dialogue box.