"andrew cooke" <andrew@xxxxxxxxxx> wrote on 03/17/2006 12:44:43 PM:
>
> Thanks. That's generally clear, but one thing confuses me. You say
that
> Dom 3 isn't enabled until 2.7, but the code works find with plain Java
> 1.5, and also with 2.6.2 explicitly included (and selected with -D...)
Xerces 2.6.2 [1] was released before DOM Level 3 [2] became W3C
Recommendation. It was compiled with DOM Level 2. The DOM Level 3
implementation wasn't complete and its method signatures differ from the
official DOM Level 3 interfaces in several places. If you're using DOM
Level 3 methods with this version of Xerces your milage may vary.
> That seems to contradict the 2.7.0 claim. Was the Xerces in the JAXP
> bundled with JDK 1.5 compiled using the special target you mention?
What is bundled in JDK 5.0 does not correspond to any Apache version.
> Or I guess 2.6.2 could be later than 2.7.0 if there's some backporting
going on?
No.
> Thanks,
> Andrew
>
> PS If anyone googles this looking for a Maven-related solution, there
are
> my notes on how to exclude this dependence in Maven here -
> http://www.acooke.org/cute/JavaXMLdep0.html
>
>
> Michael Glavassevich wrote:
> > Element.setIdAttribute() [1] is a DOM Level 3 method. DOM Level 3 has
only
> > been supported in the standard distribution since Xerces 2.7.0. In
earlier
> > versions there was experimental support for DOM Level 3 which you
could
> > access by building Xerces with a special build target. The
implementation
> > wasn't complete until Xerces 2.7.0. You'll run into problems if the
API
> > and implementation versions are out of synch.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
> For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx
[1]
http://marc.theaimsgroup.com/?l=xml-apache-announce&m=107731923805891&w=2
[2] http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@xxxxxxxxxx
E-mail: mrglavas@xxxxxxxxxx
|