Add XML Elements with the attributes using Find pallete
Hi,
We can add XML Elements using Find and Replace palette. Can we add with attribute name and values while adding the xml elements?? If not can capture the element which added using changeText for each occurrence to add attributes??

| app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;; |
app.findTextPreferences.appliedCharacterStyle = "emph";
app.changeTextPreferences.appliedCharacterStyle = "emph";
app.changeTextPreferences.markupTag = "emphasis"; // Add xml Tag
var res1 = app.activeDocuemnt.findText();
if(res1.length > 0)
{
app.activeDocument.changeText()
}
- Sudha K