Validating with xml schema validating equipment
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.
Right-click on the file name again, select Validate, and the warning in the Problems pane should disappear and you'll see a pop-up telling you the validation completed with no errors or warnings (note that you can turn this pop-up off if you like by checking the "Do not show this dialog in future" box in the pop-up).
To demonstrate the validation is now working, try changing the spelling of any of the tags inside the You can see the full text of the error message by hovering the mouse over the line beginning with cvc-complex-type, by clicking on it and looking at the bottom of the eclipse window, or by double-clicking on it.
If this is the first time you're opened a file in eclipse, it will probably open in "Design" view, which looks like this: attribute tells the processing program (in this case, eclipse) that a particular namespace will be referenced - the implication being that if you wish to be successful in processing the XML to follow, you should educate yourself on the details of that namespace.
If your a program that wants to, for example, validate the content that follows, you'd better be able to find and read the schema document(s) that defines that namespace.
If you haven't already downloaded the sample files used for the "Creating projects and importing files" demo, now would be a good time to do so.
We'll be using the schemas and labels in that package to test that our configuration is working.
This task supports the use of nested element is used to set properties.
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.
So let's try to validate this label against the pds namespace schema definition.
One way to do that is to right-click on the file name in the Project Explorer window, go about halfway down the menu, and select Validate.