Hi,
I can create a schema from xsd file:
Schema s =
SchemaFactory.newInstance(_XMLConstants.W3C_XML_SC HEMA_NS_URI_).newSchema(new
StreamSource(res.getInputStream()));
but when using XMLConstants.XML_DTD_NS_URI then an exception is thrown:
Schema s =
SchemaFactory.newInstance(_XMLConstants.XML_DTD_NS _URI_).newSchema(new
StreamSource(res.getInputStream()));
java.lang.IllegalArgumentException: http://www.w3.org/TR/REC-xml
at javax.xml.validation.SchemaFactory.newInstance(Unk nown Source)
I'm using xerces 2.7.1, do you know what's the matter?
Regards,
M
--
Marcin Cenkier [mailto_marcin.cenkier_at_cognifide_com]