java - How to force use of specific XML parser -


i have xerces , oracle xml parsers both in application's classpath (don't ask why).

when create new javax.xml.parsers.documentbuilderfactory, classloader automatically picks oracle xml parser. however, it's not full/proper implementation, it's giving me headaches.

is there way can force/tell classloader use xerces parces when constructing document builder factory?

documentbuilderfactory has newinstance() method can specify class name of implementation want use.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -