This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I was trying to validate an xml file with an schema. I have attached the class that does it and the xml file and the schema file. I am able to validate this xml file with the schema using stylus studio. But when i run this class i get and error saying
Cannot find the declaration of element 'note'.
I hae spent lots of time on this and am not able to figure out what i am doing wrong.
Could be. What does this expression produce?Is that what you are supposed to use there?
Joined: Nov 29, 2005
Thanks very much....
The code does validate the xml that have only one schema file.
What should i add in order to validate an xml file whose schema is specified in multiple files? That is one main schema which imports multiple schema file? The above coded works well if there is one schema file, and does not when the main scheman imports other schema files.