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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -