File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML4J parser classpath question" Watch "XML4J parser classpath question" New topic
Author

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?
Thanks,
Howard


<a href="http://www.getlocaldeals.com" 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
Sheriff

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?
Thanks,
Howard
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML4J parser classpath question
 
Similar Threads
newbie question: import org.*.*.*
Help wanted for first time JSP
security excetion : sealing violation ....while using XSLT
newbie question about importing org.*
Problem using xml4j