|
I had pb when compiling with openxml and
didn't find import org.openxml.io.Parser;
import org.openxml.parser.ParseException; I made a patch wihtin
org.apache.ecs.factory.DOMFactory and testbed
and made usable with ibm4J
I replaced org.openxml.parser.*; by import
com.ibm.xml.parsers.*;
and modified public
NodeList createDOM()
like this
//
Parser parser = null;
Document doc = null; // parser =
org.openxml.DOMFactory.createParser( pis, null,
org.openxml.DOMFactory.DOCUMENT_XML );
InputSource is =
new InputSource(pis);
DOMParser parser = new DOMParser(); parser.parse(is); doc = parser.getDocument(); And it works fine. But I am sure a simpler and generic solution could be found (to allow any parser) |
- Re: org.apache.ecs.factory.DOMFactory Daniel HERLEMONT
