Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » newbie question: how to use SAX in eclipse?
newbie question: how to use SAX in eclipse? [message #64678] Sun, 22 June 2003 17:14 Go to next message
Eclipse UserFriend
Originally posted by: sunifyre.yahoo.com

Hi,

I'm trying to figure out what the XMLReader parser implementation is in
Eclipse for SAX, but I can't seem to figure it out. I would like to use the
org.apache.xerces.parsers.SAXParser, but I'm not sure how to specify this in
my XMLReader instantiation.

Should I:
1. download the SAX classes or the xerces parser (to set external libraries
for the project)?
2. Or is there a more straightforward way to do this?
3. Or is it something else altogether that I am not doing?

Any suggestions, advice or comments would be greatly appreciated!

Thanks in advance,
Sunitha Kumar
sunifyre@nospam.yahoo.com
Re: newbie question: how to use SAX in eclipse? [message #64747 is a reply to message #64678] Sun, 22 June 2003 20:12 Go to previous messageGo to next message
Eclipse UserFriend
Sunitha Kumar wrote:

> Hi,

> I'm trying to figure out what the XMLReader parser implementation is in
> Eclipse for SAX, but I can't seem to figure it out. I would like to use the
> org.apache.xerces.parsers.SAXParser, but I'm not sure how to specify this in
> my XMLReader instantiation.

> Should I:
> 1. download the SAX classes or the xerces parser (to set external libraries
> for the project)?
> 2. Or is there a more straightforward way to do this?
> 3. Or is it something else altogether that I am not doing?

> Any suggestions, advice or comments would be greatly appreciated!

The SAX classes and Xerces parser are in the jar files in the Xerces
plugin's folder in your Eclipse installation. Just add them as external
jars to your project (or if you are writing a plugin, import the Xerces
plugin as a required plugin).
Re: newbie question: how to use SAX in eclipse? [message #64880 is a reply to message #64678] Mon, 23 June 2003 01:25 Go to previous messageGo to next message
Eclipse UserFriend
> Should I:
> 1. download the SAX classes or the xerces parser (to set external
libraries
> for the project)?
> 2. Or is there a more straightforward way to do this?
> 3. Or is it something else altogether that I am not doing?

Import the xerces plugin / add its libs as additional jars(BuildPath) or
just
use SDK 1.4.x from Sun (shipps with a xml engine).

Check out java.sun.com for a xml tutorial telling you the correct usage of
the
shipped xml-api. (if necessary).


Martin (Kersten)
Re: newbie question: how to use SAX in eclipse? [message #64921 is a reply to message #64880] Mon, 23 June 2003 03:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunifyre.yahoo.com

> Import the xerces plugin / add its libs as additional jars(BuildPath) or
> just
> use SDK 1.4.x from Sun (shipps with a xml engine).

Thanks, I haven't tried that out yet, but I will.

> Check out java.sun.com for a xml tutorial telling you the correct usage of
> the
> shipped xml-api. (if necessary).

: ) Thanks, I've been trying this approach this evening - it worked as soon
as I tried it.
Now, if only the first approach works as well...
Re: newbie question: how to use SAX in eclipse? [message #64938 is a reply to message #64747] Mon, 23 June 2003 03:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunifyre.yahoo.com

> The SAX classes and Xerces parser are in the jar files in the Xerces
> plugin's folder in your Eclipse installation. Just add them as external
> jars to your project (or if you are writing a plugin, import the Xerces
> plugin as a required plugin).

Okay, thanks..I'll try that out = )

Sunitha Kumar
sunifyre@nospam.yahoo.com
Re: newbie question: how to use SAX in eclipse? [message #65794 is a reply to message #64921] Tue, 24 June 2003 05:40 Go to previous message
Eclipse UserFriend
> > Import the xerces plugin / add its libs as additional jars(BuildPath) or
> > just
> > use SDK 1.4.x from Sun (shipps with a xml engine).
>
> Thanks, I haven't tried that out yet, but I will.
>
> > Check out java.sun.com for a xml tutorial telling you the correct usage
of
> > the
> > shipped xml-api. (if necessary).
>
> : ) Thanks, I've been trying this approach this evening - it worked as
soon
> as I tried it.
> Now, if only the first approach works as well...

Well one think that works is, build a standalone xerces using application
outside
of eclipse (us a example provided by xerces) and import it to a new project.
Play around with it, get it to work (set up the classpath etc.) and then
just
use what you have learned on your troublemaker ;)
Previous Topic:refactoring - rename
Next Topic:Pre-change listener?
Goto Forum:
  


Current Time: Wed May 28 19:14:04 EDT 2025

Powered by FUDForum. Page generated in 0.03362 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top