Paul Clapham wrote:Well, first of all, don't import that "com.sun" package. Use the standard XML parsers instead. And you should find your answer in this page from the Ranch's XML FAQ: HowToValidateXmlAgainstSchema
But if I remove 'com.sun' and leave only
it says, there is no such class in package 'org.apache.xerces.parsers'.