Home › Forums › General XMetaL Discussion › node list issues/questions › Reply To: node list issues/questions
Reply to: node list issues/questions
March 18, 2015 at 7:15 pmI think to do what you want to do you would have to change the nodes in reverse order (reverse the loop).
However, I think in this particular case the following script will run quite a bit faster:
[code]//XMetaL Script Language JScript:
rng = ActiveDocument.Range;
rng.MoveToDocumentStart();
while(rng.MoveToElement(“draft-comment”)) {
if(rng.CanChange(“note”)) {
rng.ContainerName = “note”;
}
}[/code]