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.1As 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
you are using jaxp api's to create a DOM parser [1], section 3.2 in [2].I am wondering why jaxp is added in the package structure. Isn't it xerces parser only and not jaxp?
If you want to use xerces dom parser directly refer to dom programs under samples directory.
Does this answer your question ?.Should I set it to some other value for xerces parser or is this the correct behavious?
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.
