Hi everyone!

I'm trying to loop through an array of item/value pairs and change the element name (item)
of each textelement that contains a given value:

Like; Change the element name to "Foo" on all textelements containing "Bar" ... Get it ?

Something like this: (simplified):

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

fw.setUpFindReplace({
find:myValue,
matchCase:false,
regExp:false,
replace:myValue,
updateLog:false,
whatToFind:"text",
whereToSearch:"doent",
wholeWord:true
});

findResponse = fw.findNext();

while(findResponse == -1){
fwDom.setElementName(myItem);
findResponse = fw.findNext();
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

The code above works perfect, and the first item/value pair is replaced perfectly,
but when it reaches to iteration #2 FW selects the first matching textElement and
than breaks the execution of my script !!??

Does anyone of you have experienced this before? Is it a well-known "feature" ??

// Best Regards

:) Kalpa