Re: Validate XML by XSD failes with jDOM and Xerces 2.10.0

Mukul Gandhi <[email protected]>
Newsgroups gmane.text.xml.xerces-j.user
Message-ID <CABuuzNP7Q+_puHM1kmbG=MG8k9DuwsFK9ohFLZtqhrK-x9ppig@mail.gmail.com>
On Sat, Apr 6, 2013 at 1:13 PM, Ronny <[email protected]> wrote:

> JDOM is looking for a xerces class in the class path.

That is fine and then you should provide a Xerces jar within your
classpath, which you seem to have already done.

> Therefore I downloaded
> the latest xerces and put it in the JAVA_HOME/lib/ext folder.

I'm really not sure, if substituting a latest Xerces jar within your
JDOM runtime classpath, may be sufficient to make available
functionality of this Xerces jar to your JDOM runtime. Your JDOM
runtime may be using Xerces in some other way.

> So it seems
> JDOM is using the right xerces implementation. But the error still occurs.

As I wrote earlier, simply placing a new Xerces jar within your JDOM
classpath may not be a sufficient condition to make available
functionality of this Xerces jar to your JDOM application.

Therefore, my guess currently wrt this issue are,
1) Either JDOM doesn't support using new Xerces jars, in this way.
2) Or you may need to do a JDOM specific configuration, to be able to
use new Xerces jars

You may have to ask support for this query, to JDOM forum or if
someone here can provide a better explanation perhaps.


Sorry if this is not helpful.


-- 
Regards,
Mukul Gandhi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.