"Rajiv Mordani [CONTRACTOR]" wrote:

> >> The question to resolve is whether or not people think that the
> >> DOM implementation is *the* generic DOM for all of the Apache
> >> XML project. If "yes", then let's move it. If "no", then we
> >> need to ask if there is a generic DOM.
> 
> Well if you want to be real generic refer to the interfaces in org.w3c.dom. 

This is the key. What we are missing is something like

 org.w3c.dom.Document javax.xml.Document.createDocument();

backed up with something like

 void javax.xml.Document.setFactory(javax.xml.DocumentFactory factory);

and I know Sun is working on hooks like these in the XML API JCP
proposal (don't ask me it's status, though). Let's not forget this: you
shouldn't even _know_ what classes implement your polymorphic
interfaces. This is the beauty of it. So it doesn't really make a
difference org.apache.xml.dom or org.apache.xerces.dom.

Am I wrong?

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<[EMAIL PROTECTED]>                             Friedrich Nietzsche


Reply via email to