Adding a new attribute to an element: search and replace
Posted: Tue Sep 27, 2011 5:01 pm
I'm trying to work how to achieve the following using Oxygens "find and replace in files" feature.
Find these elements:
//thead/row/entry
Add an attribute role="col" to each entry element that you find.
//thead/row/entry[@role="col"]
I'm not sure which XML find options to enable.
I used Restrict to XPath: //thead/row/entry
after that I was stumped.
Find these elements:
//thead/row/entry
Add an attribute role="col" to each entry element that you find.
//thead/row/entry[@role="col"]
I'm not sure which XML find options to enable.
I used Restrict to XPath: //thead/row/entry
after that I was stumped.