aspose file tools*
The moose likes XML and Related Technologies and the fly likes Xerces question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Xerces question" Watch "Xerces question" New topic
Author

Xerces question

Edward Morris
Greenhorn

Joined: Jun 29, 2006
Posts: 18
Hi guys, I'm using Sun's Enterprise version of JAVA (which installs on c:\sun.....). I am trying to write a program to create and parse XML documents and when I do an import for org.apache...., eclipse cries! saying import cannot be resolved. I'm guessing I'll have to install this Apache Xerces parser, but I don't know how to do that. Can anybody help??
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
You probably can make Eclipse happy by adding the xerces Jars to your project build path. Check the project build path in Eclipse. I don't have the J2EE SDK installed on this box, but my gut says that xerces jars are embedded in there somewhere. You just have to add them to the Eclipse project.

That said, you can download the xerces jars from apache.org and add them to your classpath. There is nothing complicated about this - just a zip file with a bunch of Jar files (and other stuff) in it. Unzipp and copy the jars.

- m


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Do you actually need to use the Xerces classes? Or do you just need to use Java to parse XML, and you're basing your code on an example that used Xerces? Normally to parse XML in Java (1.4 or later) you can just use the classes in the javax.xml.parsers package, and you don't have to download any parsers, Xerces or otherwise.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Xerces question