Thanks, that worked.
- Jim From: Michael Glavassevich [mailto:mrgla...@ca.ibm.com] Sent: Tuesday, September 25, 2012 9:59 AM To: j-users@xerces.apache.org Subject: Re: error when using Hi Jim, You need to add the other Xerces jars to your classpath. xercesSamples.jar isn't enough. You should also include xml-apis.jar using the Endorsed Standards Override Mechanism. See the FAQ here [1]. Thanks. [1] http://xerces.apache.org/xerces2-j/faq-general.html#faq-4 <http://xerces.apache.org/xerces2-j/faq-general.html#faq-4> Michael Glavassevich XML Technologies and WAS Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org "Jim Barnett" <jim.barn...@genesyslab.com> wrote on 25/09/2012 09:47:14 AM: > I’m trying to use the jaxp.SourceValidator example in the beta > version of 2.11. When I pass in the –xsd11 flag, I get a “no schema > factory” error as shown below. I assume that I’m doing something > very stupid, but I can’t figure out what it is. Any guidance would > be appreciated. > > Thanks, > Jim > > C\SCXML_Tests>java -cp D:\xerces\xerces-2_11_0-xml-schema-1.1-beta > \xercesSamples.jar jaxp.SourceValidator -a <someschema.xsd> -i > <somefile> -xsd11 > : Parse error occurred - No SchemaFactory that implements the schema > language specified by: http://www.w3.org/XML/XMLSchema/v1.1 > <http://www.w3.org/XML/XMLSchema/v1.1> c > be loaded > lang.IllegalArgumentException: No SchemaFactory that implements the > schema language specified by: http://www.w3.org/XML/XMLSchema/ > <http://www.w3.org/XML/XMLSchema/> > could be loaded > at javax.xml.validation.SchemaFactory.newInstance(Unknown Source) > at jaxp.SourceValidator.main(Unknown Source)