Arthur Burma wrote:so i have used this expression , but maybe a better way to set this independant of the order on attribute::value result
Well, assuming we are actually talking about DOM programming here (your code certainly looks like that): you should be getting an Attr node from that XPath expression. So why wouldn't you just use its setValue() method, as per the documentation?
I'm saying that based on the fact that you haven't told us that you are having a problem, or what it is if there is a problem. So I'm just guessing at things to say. So perhaps you could do that. If there are exceptions, show us the stack trace. If some output differs from what you think it should be, show it to us and tell us what the difference is.
Joined: Nov 12, 2009
To keep things simple I have to clarify , hereis the xml :
Actually I just want to modify the value in property with replacing the string "loader/CSV" by "output/local" for instance... I have some trouble <ith xpath for that because it's not outside an attribute tag;