4 Replies Latest reply on Sep 3, 2010 10:30 AM by mattaca

    renaming XML tags via Javascript

    mattaca Level 2

      I currently have a script that finds certain paragraph styles and renames them. For example:

       

      var myDoc=app.activeDocument;

            var myStyle=myDoc.paragraphStyles.itemByName("SIDEBAR B HEAD");
            myStyle.name="SIDEBAR RATING HEAD"

       

      I'd like to do the same thing with some XML tag names, preferably as part of the same script. I'm sure it's fairly easy, but for some reason I can't find any info on how to call out XML tags!

       

      I've looked through the InDesign CS4 Scripting Tutorial and Adobe Introduction to Scripting, but at this point I feel like I'm wasting my time on a simple problem. Can anyone help out an amateur?

       

      Thanks in advance,

      Matt