Hello everyone,
I'm trying to remove nodes from my XML file using JXPath.
I'm doing the following :
context.getVariables().declareVariable("sourcePath", sourcePath); // sourcePath being
a string and correspond to an attribute in my XML
context.removePath("//[EMAIL PROTECTED]");
If I replace the $sourcePath string by 'D:/TEST/' for example it works... But if
sourcePath is "D:/TEST" it doesn't work...
I get the following error :
org.apache.commons.jxpath.JXPathException: Exception trying to remove xpath
file://[EMAIL PROTECTED]; Cannot remove an object that is not some other object's
property or a collection element.
Has anyone an idea?
Thanks in advance,
J�r�me.