This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XML4J parser classpath question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML4J parser classpath question" Watch "XML4J parser classpath question" New topic

XML4J parser classpath question

Howard Ralston
Ranch Hand

Joined: Jun 25, 2001
Posts: 105
Hi guys,
I have downloaded XML4J into a folder named XMLzip. I then unzipped it into the folder according to the instrucions.Then I set my classpath to include e:\XMLzip\org\apache\xerces;
My program does not compile, giving error saying that DOMParser is not recognized.
Does anyone have any ideas about this? It seems to be the correct classpath, but I am not sure. What else could I try?

<a href="" target="_blank" rel="nofollow">Free local coupons</a>
Howard Ralston
Ranch Hand

Joined: Jun 25, 2001
Posts: 105
Can anyone help me here?
Ajith Kallambella

Joined: Mar 17, 2000
Posts: 5782
Try copying the jar file to %JAVAROOT%\JRE\lib\ext directory. If that doesn't help, can you post the exact error message?
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Howard Ralston
Ranch Hand

Joined: Jun 25, 2001
Posts: 105
Hello Ajith,
I tried your advice and it worked fine with Apache's Xerces,
but when I tried the XML4J Xerces, I still got the error saying that class DOMParser was not found. I can use the Apache version, but I wanted to use XML4J because my book has a good listing of its methods. As I understand, most of the methods used for XML4J are the same as those used in the Apache version, but there are some differences. What is your experience in this? Which parser do you prefer, XML4J, JAXP, or Apache's Xerces?
I agree. Here's the link:
subject: XML4J parser classpath question
Similar Threads
Problem using xml4j
newbie question about importing org.*
Help wanted for first time JSP
newbie question: import org.*.*.*
security excetion : sealing violation ....while using XSLT