peter peter wrote:
Hi,
I know my question is very basic, but i just need some clarifiactions.
 
I am using jdk1.4 and xerces2.2.1
As xerces bundled with jdk1.4, I don't want to use that. So i have put xercesImpl.jar file in the classpath, and then use the following factory method to get the xerces parser reference.
 
DocumentBuilderFactory dbFactory =   
                DocumentBuilderFactory.newInstance();
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
 
xercesImpl.jar has javax.xml.parsers.DocumentBuilderFactory.properties set to org.apache.xerces.jaxp.DocumentBuilderFactoryImpl

 
I am wondering why jaxp is added in the package structure. Isn't it xerces parser only and not jaxp?
you are using jaxp api's to create a DOM parser [1], section 3.2 in [2].
If you want to use xerces dom  parser directly refer to dom programs under samples directory.

Should I set it to some other value for xerces parser or is this the correct behavious?
Does this answer your question ?.

Regards
venu

[1]http://xml.apache.org/xerces2-j/faq-dom.html#faq-5
[2]http://java.sun.com/xml/jaxp/             -[ jaxp1.2  spec]

 
Any help will be appreciated.
 
Regards,
Peter

Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

Reply via email to