Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » eclipse plug-in & xerces
eclipse plug-in & xerces [message #277187] Mon, 06 December 2004 10:17 Go to next message
Eclipse UserFriend
Originally posted by: electrodyne.inwind.it

hi, i'm developing a plug-in with Eclipse 3.0:
a part of this plug-in has to parser a xml document; in the stand-alone
application i made i have used the xerces libraries but when i test the
plug-in (in a runtime-workbench) i check an error as the plug-in cannot load
the xerces libraries.
reading some messages i notice that Eclipse 3.0 doesn't use anymore Xerces
but its own libraries, where can i find it? or there're other solutions for
my problem?
Thanks M.
Re: eclipse plug-in & xerces [message #277190 is a reply to message #277187] Mon, 06 December 2004 10:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gerhard.maier.schulz-engineering.com

Hi,

As i mad a plug-in of my program, i had the same problem, i used xerces
for sax parseing.

I initialize originally the XMLReader:
XMLReader rdr = XMLReaderFactory.createXMLReader(
"org.apache.xerces.parsers.SAXParser" );

use the same without class-string, hope it helps.
XMLReader rdr = XMLReaderFactory.createXMLReader( );


br
gerhard


Markus schrieb:
> hi, i'm developing a plug-in with Eclipse 3.0:
> a part of this plug-in has to parser a xml document; in the stand-alone
> application i made i have used the xerces libraries but when i test the
> plug-in (in a runtime-workbench) i check an error as the plug-in cannot load
> the xerces libraries.
> reading some messages i notice that Eclipse 3.0 doesn't use anymore Xerces
> but its own libraries, where can i find it? or there're other solutions for
> my problem?
> Thanks M.
>
>
Re: eclipse plug-in & xerces [message #277199 is a reply to message #277187] Mon, 06 December 2004 12:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

check out the eclipse emf project at:
http://www.eclipse.org/emf/
then click on: downloads
then click on the yellow line: Click here if you load or import
model(s) from XML Schema.
then read the instruction on installing xerces

norwood sisson


Markus wrote:

> hi, i'm developing a plug-in with Eclipse 3.0:
> a part of this plug-in has to parser a xml document; in the stand-alone
> application i made i have used the xerces libraries but when i test the
> plug-in (in a runtime-workbench) i check an error as the plug-in cannot load
> the xerces libraries.
> reading some messages i notice that Eclipse 3.0 doesn't use anymore Xerces
> but its own libraries, where can i find it? or there're other solutions for
> my problem?
> Thanks M.
>
>
Re: eclipse plug-in & xerces [message #277201 is a reply to message #277190] Mon, 06 December 2004 13:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: electrodyne.inwind.it

Wow, danke sehr mein freund
now it's all correct.
M.
"Gerhard Maier" <gerhard.maier@schulz-engineering.com> ha scritto nel
messaggio news:cp1uuh$lan$1@www.eclipse.org...
> Hi,
>
> As i mad a plug-in of my program, i had the same problem, i used xerces
> for sax parseing.
>
> I initialize originally the XMLReader:
> XMLReader rdr = XMLReaderFactory.createXMLReader(
> "org.apache.xerces.parsers.SAXParser" );
>
> use the same without class-string, hope it helps.
> XMLReader rdr = XMLReaderFactory.createXMLReader( );
>
>
> br
> gerhard
>
>
Re: eclipse plug-in & xerces [message #277249 is a reply to message #277187] Tue, 07 December 2004 11:12 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

Markus wrote:
> hi, i'm developing a plug-in with Eclipse 3.0:
> a part of this plug-in has to parser a xml document; in the stand-alone
> application i made i have used the xerces libraries but when i test the
> plug-in (in a runtime-workbench) i check an error as the plug-in cannot load
> the xerces libraries.
> reading some messages i notice that Eclipse 3.0 doesn't use anymore Xerces
> but its own libraries, where can i find it? or there're other solutions for
> my problem?
> Thanks M.
>
>

Looks like you already got some help, but I wanted to point out the
reasoning. Eclipse 3.x requires JDK 1.4.x to work. JDK 1.4 includes an
XML parser, so Eclipse no longer needs to include Xerces.
Applications should generally not depend on a particular parser - they
should use the generic JAXP APIs and allow the JVM to be configured with
whatever parser. That is why creating your XMLReader with no specific
class name is the right solution - it does not depend directly on a
Xerces class.

HTH,
Eric
Previous Topic:eclipse bugzilla queston
Next Topic:I need the org.apache.xerces_4.0.13 plugin from 3.0M8
Goto Forum:
  


Current Time: Thu Jul 17 22:03:51 EDT 2025

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

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

Back to the top