Skip navigation
Velprakash
Currently Being Moderated

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

Apr 23, 2012 4:39 AM

Tags: #tags #xml

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)

 

 

docObj=app.activeDocument; 

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);

docObj.mapXMLTagsToStyles();

 

 

Thanks and Regards,

Vel.

 
Replies
  • Currently Being Moderated
    Aug 14, 2012 4:37 AM   in reply to Velprakash

    Plz give me the logic for how tagging to HTML file.. Am nw working on Indesign to html conversion..

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 16, 2012 1:15 AM   in reply to Velprakash

    Hello Vel

     

    Thank you for your reply. I solved that problem

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points