Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 22270

Summary: Cannot use javax.xml.parsers APIs in jdk1.4
Product: [Eclipse Project] Platform Reporter: Konrad Kolosowski <konradk>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 21386    

Description Konrad Kolosowski CLA 2002-08-08 13:05:16 EDT
At the moment many plugins use Xerces implementation classes instead of APIs.
They use code
	org.apache.xerces.parsers.SAXParser parser = new 
org.apache.xerces.parsers.SAXParser ();
instead of
	javax.xml.parsers.SAXParserFactory 
factory=javax.xml.parsers.SAXParserFactory.newInstance();
	javax.xml.parsers.SAXParser parser = factory.newSAXParser();

But switching to use APIs causes Crimson implementation to be loaded as instead 
of Xerces.  This occurs when using jdk1.4 that ships with APIs that are 
duplicate of ones in the xerces plugin.
Comment 1 Konrad Kolosowski CLA 2003-10-14 17:04:12 EDT
With Eclipse 3.0 requiring JDK1.4 a plugged in parser can be assumed and there 
is no need to use Xerces directly whether using implementation or Xerces 
APIs.  JAXP APISs can be used and problem disappears in Eclipse 3.0.