/Michael Glavassevich/:
Stanimir Stamenkov <[EMAIL PROTECTED]> wrote on 11/04/2005 09:46:22 AM:

On the other hand if you want to use the DOM Level 3 interfaces provided by Xerces you'll need to put at least the "xml-apis.jar" in the "endorsed" libraries, at least for compilation - I'm not sure if one would need it run-time.

You should always use the endorsed standards mechanism for the JAXP 1.3 APIs when running on J2SE 1.4. JAXP 1.3 and DOM Level 3 added methods to existing classes and interfaces, all of which are present when the parser is compiled. If you simply put xml-apis.jar on the classpath you risk running your application with a mix of classes from JAXP 1.1 and 1.3 which may lead to a NoSuchMethodError being thrown at some point during processing becuase of the mismatch.

You're correct - I've just verified the newer interfaces must are available during compilation and run-time. There could be a problem if one uses a DOM built from an older implementation which doesn't expose the newer methods but that's no option here, I guess.

--
Stanimir

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

Reply via email to