[jdom-interest] validation problems using b9-rc1?

Elliotte Rusty Harold elharo at metalab.unc.edu
Fri Apr 11 09:13:11 PDT 2003


At 9:03 AM -0700 4/11/03, Ben Rogers wrote:
>I am developing an application (using Websphere App
>Developer 5) that relies on XML input files.  I have
>been using the b8 code, with the xerces.jar that comes
>with b8.  When i read in my input file, I want to
>validate it, and when using the b8/xerces combination,
>this code works great:
>	SAXBuilder builder = new SAXBuilder(true);
>
>Now that I have switched to b9_rc1, i am getting these
>exceptions: (or "this" exception, depending on your
>point of view).  So the question is this: why do WSAD
>and b8 think that all of my xml/xsd files are fine,
>but b9 does not?
>

It's hard to tell without seeing your XML and XSD files, but I 
suspect that the newer version of Xerces bundled with b9, is catching 
something the old version missed. It's also possible you have used 
something in the schema that one of the errata changed. Try 
validating just with Xerces without JDOM anywhere in the picture.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|           Processing XML with Java (Addison-Wesley, 2002)          |
|              http://www.cafeconleche.org/books/xmljava             |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+



More information about the jdom-interest mailing list