4 Replies Latest reply on Aug 16, 2012 1:15 AM by piggychops

    Find bold strings and apply XML tags which already I created manually...

    Velprakash Level 1

      Dear Frnds,

                 I want to search string(strings which are bold) from my document textframe and apply xmltags for that... I worked with the below codes... But it's not working well...  (b-bold tag with a color tag)




      xmlObj = docObj.xmlTags; 

      app.findTextPreferences = app.changeTextPreferences = null;

      //app.findTextPreferences.findWhat = '(.+)';

      app.findTextPreferences.fontStyle = "Bold";

      app.changeTextPreferences.changeTo = docObj.xmlImportMaps.xmlObj.tags.item(name:b);




      Thanks and Regards,