StAXOMBuilder builder = new StAXOMBuilder(omFactory, parser);
// StAXOMBuilder defaults to the "legacy" behavior, which is to keep a reference to the
// parser after the builder has been closed. Since releasing this reference is a good idea
// we default to releaseParserOnClose=true for builders created through the OMMetaFactory
// API.
builder.releaseParserOnClose(true);
return builder;
}
public OMXMLParserWrapper createOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, InputSource is) {
return createStAXOMBuilder(omFactory, createXMLStreamReader(configuration, is));