M
Marcin Cenkier
Hi,
I can create a schema from xsd file:
Schema s =
SchemaFactory.newInstance(_XMLConstants.W3C_XML_SCHEMA_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(Unknown Source)
I'm using xerces 2.7.1, do you know what's the matter?
Regards,
M
I can create a schema from xsd file:
Schema s =
SchemaFactory.newInstance(_XMLConstants.W3C_XML_SCHEMA_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(Unknown Source)
I'm using xerces 2.7.1, do you know what's the matter?
Regards,
M