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
Post a Comment