Stanimir Stamenkov <[EMAIL PROTECTED]> wrote on 10/24/2006 04:16:41 AM:

> /Michael Glavassevich/:
> 
> > When the system property isn't set, DOMImplementationRegistry will 
look 
> > for a file called 
> > META_INF/services/org.w3c.dom.DOMImplementationSourceList in the jars 
on 
> > the classpath to determine the class name. The one in xercesImpl.jar 
> > already points to org.apache.xerces.dom.DOMXSImplementationSourceImpl.
> 
> Yes, I'm aware of that mechanism and I've wondered why is the 
> |System.setProperty(DOMImplementationRegistry.PROPERTY, 
> "org.apache.xerces.dom.DOMXSImplementationSourceImpl")| call ever 
> issued in the examples - to ensure the original Xerces 
> implementation is in use and not other like the Sun's JDK 5 supplied 
> one?

META-INF/services was only added to the look-up mechanism in the final 
draft (W3C Recommendation - April 7, 2004) of DOM Level 3. The examples 
are much older than that and its probably the case that no one revisited 
them. When using the earlier drafts you had to set the system property.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

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

Reply via email to