[jdom-interest] XML Schema validation asking or DOCTYPE?
neilblue at bigfoot.com
Thu Oct 25 02:31:04 PDT 2001
Thank you Travers,
The xerces 1.4.3 version works with the namespace:
I still don't undersand how the xerces.jar is being picked up as I am
java -classpath ../build/jdom.jar:. SAXBuilderDemo
which doesn't include the xerces.jar file?
Travers Waker wrote:
> Hi Neil.
>> my xml file has:
>> <?xml version="1.0"?>
>> <Book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> This could be a problem. The version of Xerces that ships with JDOM b7 is 1.2.0, from 09/2000, so it's unlikely to support
> the schema spec of 2001. It's probably wanting:
> where XX is some month, although I don't know which one.
> What I would try first is to download the latest version of XercesJ 1 from www.apache.org, and use that xerces.jar instead of
> the old one that shipped with JDOM b7. Then you can use xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance".
> I see that you tried using XercesJ 2, which maybe you thought was the latest version of the Xerces jar that shipped with
> JDOM, but actually Xerces J 2 is a completely different parser to XercesJ 1, and does not support schema validation yet, I
> The latest official Xerces release is 1.4.3.
> Good luck.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the jdom-interest