Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » how to call a custom documentbuilder (saxon)
how to call a custom documentbuilder (saxon) [message #148014] Wed, 22 October 2003 21:58
Eclipse UserFriend
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
Previous Topic:DnD - PluginTransfer to Navigator View
Next Topic:Newbie question:can't find java
Goto Forum:
  


Current Time: Wed Apr 16 10:01:30 EDT 2025

Powered by FUDForum. Page generated in 0.02856 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top