Home Forums General XMetaL Discussion node list issues/questions Reply To: node list issues/questions

Derek Read

Reply to: node list issues/questions

@frances

I 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]

Reply

Products
Downloads
Support