[quote user="Barry Lothian"]In my case I am modifying tags within a cell[/quote]
You're not: you're modifying tags attached to a cell. The tags are separate elements: they are dependent on the host element (the cell, in your case).
Inspect your cell with the Element Information tool. You can see that the cell does not contain any tag element.