Hi, Try this ...
var doc = app.activeDocument;
updateAttributes(doc,'ul','class','number','title');
function updateAttributes(source,element,attributename,attributevalue,newattributevalue){
for (var i = 0; i < source.xmlElements.length; i++){
try{
for(j=0; j<source.xmlElements.xmlAttributes.length; j++){
if(source.xmlElements.markupTag.name == element && source.xmlElements.xmlAttributes .name == attributename && source.xmlElements.xmlAttributes .value == attributevalue){
source.xmlElements.xmlAttributes .value= newattributevalue;
}
}
}catch(e){}
updateAttributes(source.xmlElements,element,attributename,attributevalue,newattributevalue);
}
}
... View more