On Wed, Oct 23, 2019 at 1:39 AM Bill Tantzen <tantz...@umn.edu> wrote:
> > I need to validate some xml against a version 1.1 xsd file, and I cannot > even create a schemaFactory! > > > I have downloaded Xerces-J-bin.2.12.0-xml-schema-1.1, and I can verify > that org/apache/xerces/jaxp/validation/XMLSchema11Factory.class is present. > When I attempt to create a new factory instance with > > > SchemaFactory sf = SchemaFactory.newInstance(“ > http://www.w3.org/XML/XMLSchema/v1.1”); > > > I get an Exception: > > > java.lang.IllegalArgumentException: > > No SchemaFactory that implements the schema language specified by: > http://www.w3.org/XML/XMLSchema/v1.1 could be loaded > This looks to me a classpath issue. SchemaFactory sf = SchemaFactory.newInstance(" http://www.w3.org/XML/XMLSchema/v1.1"); works for me. -- Regards, Mukul Gandhi