通常使用時...
Transformer t = TransformerFactory.newInstance().newTransformer();
t.transform(source,result);
(xmlparserv2.jar ファイルがない場合) File Not Found Exception は次のようになります。
Exception in thread "main" java.io.FileNotFoundException: C:\Documents and Settings\username\nonExistentFile.xml (The system cannot find the file specified)
xmlparserv2.jar を含めると、例外はこれに変わります
Caused by: java.io.FileNotFoundException: C:\Documents%20and%20Settings\username\existingFile.xml (The system cannot find the path specified)
ファイルは実際にはそこにあります(jarを含めない場合、変換メソッドはそれを見つけます)が、jarを含めると、空白に挿入された%20のために変換メソッドがファイルを見つけることができません。誰かがこれを修正する方法を教えてもらえますか?