xerces parser  
Author Message
slurper





PostPosted: 2004-8-23 17:37:00 Top

java-programmer, xerces parser i have slight problem:

i downloaded the xerces xml-parser and want to use the DOMParser class:

import org.apache.xerces.parsers.DOMParser;

later in code:

DOMParser parser = new DOMParser();


this class resides in a jar-file which i put in my classpath
(/dir/xalan-j_2_6_0/xercesImpl.jar)

jar -tvf reveals the DOMParser class is there, but the compiler says it
can't resolve the symbol.

Is this because you can't access this class directly anymore?
Should i use JAXP, to access it?

anybody an idea?
tx

 
gregory.guy





PostPosted: 2004-8-30 16:09:00 Top

java-programmer >> xerces parser Which compiler are you using ? Is that inside an IDE ? Which one ? Try
compiling your code from command prompt (javac .....) and tell me
which error message you get...

Quiks
--------------
BTW: For those who have to do with monitoring, check the site:
http://www.metamindsolutions.com. It's a great multiplatform
monitoring solution and seems to have been adopted by large accounts


slurper <email***@***.com> wrote in message news:<4129ba67$0$3890$email***@***.com>...
> i have slight problem:
>
> i downloaded the xerces xml-parser and want to use the DOMParser class:
>
> import org.apache.xerces.parsers.DOMParser;
>
> later in code:
>
> DOMParser parser = new DOMParser();
>
>
> this class resides in a jar-file which i put in my classpath
> (/dir/xalan-j_2_6_0/xercesImpl.jar)
>
> jar -tvf reveals the DOMParser class is there, but the compiler says it
> can't resolve the symbol.
>
> Is this because you can't access this class directly anymore?
> Should i use JAXP, to access it?
>
> anybody an idea?
> tx