xerces parser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • slurper

    xerces parser

    i have slight problem:

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

    import org.apache.xerc es.parsers.DOMP arser;

    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

  • Quiks

    #2
    Re: 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 <slurper1234@sk ynet.be> wrote in message news:<4129ba67$ 0$3890$ba620e4c @news.skynet.be >...[color=blue]
    > i have slight problem:
    >
    > i downloaded the xerces xml-parser and want to use the DOMParser class:
    >
    > import org.apache.xerc es.parsers.DOMP arser;
    >
    > 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[/color]

    Comment

    Working...