Bonjour,
j'utilise le code ci dessous pour faire une transformation xml vers xml par un fichier xslt cependant j'ai l'erreur suivante : Null Pointer in Method Invocation
avec les imports :
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8Source xmlSource = new StreamSource("xmlFile.xml"); Source xsltSource = new StreamSource("xsltFile.xslt"); Result xmlResult = new StreamResult("xmlConvert.xml"); TransformerFactory transFact = TransformerFactory.newInstance(); Transformer trans = transFact.newTransformer(xsltSource); trans.transform(xmlSource, xmlResult );
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
d'où cela peut-il provenir ? Merci.

 

 
		
		 
        

 
			
			

 
   


 Transformation fichier XML
 Transformation fichier XML
				 Répondre avec citation
  Répondre avec citation
Partager