Bon voilà, je vous préviens je suis plus que néophyte, j'ai commencé hier à me pencher sur xml, xsd et xpath. ^^

Donc voilà mon problème : Je n'arrive pas à créer de xpath avec XPathFactory (javax.xml.xpath). Au moment où je tente de faire XPathFactory.newInstance(), j'ai une exception
XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom
J'ai fais des recherches, et la seule info que j'ai pu trouvé c'est de retirer la librairie xml-apis (installée avec xerces) du buildpath pour résoudre le problème. Je suppose que cette api n'utilise pas la bonne version de xpath, mais dans ce cas où trouver la bonne ?

Voici le code (on ne peut faire plus épuré) :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
import javax.xml.xpath.XPathFactory;
 
public class test
{
	public static void main(String args[])
	{
		try
		{
			XPathFactory fabrique = XPathFactory.newInstance();
		}
		catch (Exception e)
		{
			e.printStackTrace();
			return false;
		}
		return true;
	}
}
Merci d'avance pour vos lumières. ^^