• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Trouble Using Apache Xerces

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I have just started an XML tutorial and I am trying to compile an example on using the DOMParser class. However I get a "package org.apache.xerces.parsers does not exist" when I try to import the package:
import org.apache.xerces.parsers.DOMParser;
and a "cannot resolve symbol" error when I try to create a new DOMParser:
DOMParser parser = new DOMParser();
After trying ggogle for a few hours the best I could find was to add "xercesImpl.jar" and "xmlParserAPIs.jar" to my classpath setting which I have done a number of times and restarted the machine each time - no luck. I definitely have the DOMParser.java and accompanying files under the following directory structure:
C:JBuilder9/extras/xerces/src/org/apache/parsers
What do I need to do to make this work? Do I need to change my import statement or move the xerces folder from "extras" into the main jdk1.4/src/org/apache folder? I am truly stuck on this and would greatly appreciate any help.
Thanks in advance,
Sean.
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a forum specifically for XML and related products. I will move this post for you.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok. And I'll move it to IDEs because the problem is how to add Xerces into the project's classpath in JBuilder 9
Continue the discussion over there, please.
[ January 29, 2004: Message edited by: Lasse Koskela ]
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic