> So it sounds like you are using Xschema and not DTD.  I don't think I've
> tested that case so there may very well be a bug.  Also, are you
> specifying the XSD in the input doc or via an attribute, that might make
> some difference.
> 
> --Bin:  It is inside the XML file as an attribute.
> 
> Also, it was recently brought to my attention that the code in the
> javax.xml.parsers package in xerces.jar is outdated.  The latest code is
> in the xml-commons repository under java/external.  At one time there
> were discussions on [EMAIL PROTECTED] about xml-commons, but they
> seem to have died down.  Ideally, the JAXP 1.1 API code which includes
> javax.xml.parsers should come from xml-commons and the versions in
> xerces.jar should be removed.
> 
> --Bin:   I used JAXP1.1 code from Sun's website and it should be the most
> updated one.

Not true, see below.

> And I put it before the Xerces.jar in classpath and the same problem
> happened.
> Did the JAXP1.1 at xml-common differ from the Sun's JAXP1.1 code?

Yes, they are different.  The JAXP1.1 at java.sun.com is old and has
some bugs which are all fixed in the apache source base.  The apache
repository has the latest code, unfortunately, we are not allowed to
update the java.sun.com version for various reasons.

Also, for this to work the xerces.jar has to have the right META-INF
resource file.  I remember that this was missing and was fixed, but am
not sure if the latest available version of xerces.jar has this file in
it.

-Edwin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to