* instead of requesting a {@link DocumentBuilderFactory} using JAXP.
*/
public class AxiomParserPool extends StaticBasicParserPool {
public AxiomParserPool() {
DOMMetaFactory metaFactory = (DOMMetaFactory)OMAbstractFactory.getMetaFactory(FEATURE_DOM);
DocumentBuilderFactory dbf = metaFactory.newDocumentBuilderFactory();
// Unfortunately, ParserPool doesn't allow to set the DocumentBuilderFactory, so that we
// have to use reflection here.
try {
Field dbfField = StaticBasicParserPool.class.getDeclaredField("builderFactory");
dbfField.setAccessible(true);