XPathAPI cannot be resolved
Bonjour,
J'ai le début de code suivant :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
import java.io.*;
import javax.xml.parsers.*;
import org.w3c.dom.*;
import org.apache.xpath.*;
class TestDOM {
public static void main(String args[]) {
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
Document doc = docBuilder.parse(new File(args[0]));
String xpath = args[1];
String str = XPathAPI.eval(doc, xpath).toString(); |
Et Eclipse me dit "XPathAPI cannot be resolved". J'ai probablement du oublier une bête chose, mais je ne comprend pas quoi :( !
J'ai même rajouté "xalan.jar" et "xerces.jar" au classpath, mais rien n'y change.
J'espère que l'un d'entre vous prendra le temps de m'aiguiller. Merci d'avance :)
EDIT : PS : Débutant, pas taper svp :aie: