I have Xerces and Oracle XML parsers both in my application's classpath (don't ask why).
When I create a new javax.xml.parsers.DocumentBuilderFactory
, the classloader automatically picks up the Oracle XML parser. However, it's not a full/proper implementation, so it's giving me headaches.
Is there a way I can force/tell the classloader to use the Xerces parces when constructing the document builder factory?