Just wondering if there's a handy tool out there (on the web etc) that enables an XML fragment to be validated against a schema ?
I do realised I could write a SAX/DOM java class which would validate it one against the other but was wondering if there's a tool on
the web (maybe soapUI or something like it) that currently exists ?
XMLSpy is one of the tools which you can use. But I vaguely remember about an eclipse plugin which is freely available that can be used for this purpose. Recenly I used Oxygen XML for an evaluation period of 30 days and it is pretty cool.
While XMLSpy and Oxygen are excellent tools, all you need in this situation is Eclipse.
Make sure that you have specified the schema location in your XML document, then right-click on the XML document or in the editor of the XML document and select Validate.
It will validate your XML document against the XML schema.
Experiment with some illegal data in the XML document to see that validation fails.