how to call a custom documentbuilder (saxon) [message #148014] |
Wed, 22 October 2003 21:58 |
Eclipse User |
|
|
|
Hello,
I have a need to use saxon in one of my plugins.
However I feel reluctant to call System.setProperty() to
set my factory implementation class name. I am quite sure
this would have adverse affects on the rest of the platform
and/or other plugins.
Can someone provide a workaround or dispense some advice
for the code below ?
System.setProperty( "javax.xml.parsers.DocumentBuilderFactory",
"com.icl.saxon.om.DocumentBuilderFactoryImpl" );
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Node xmlDoc = builder.parse( inputSource );
com.icl.saxon.om.NodeInfo nodeInfo = ( NodeInfo ) xmlDoc;
Sincerely,
-Mohsin
|
|
|
Powered by
FUDForum. Page generated in 0.02856 seconds