1 Reply Latest reply on Jan 24, 2014 5:38 AM by Jump_Over

    Help needed - remove xmlimportmap

    Ot_Gu Level 1

      Hello all,

       

      First time in the forum...

       

      I have written a v. simple script as follows:

       

      main()

      function main(){

                var myDocument = app.documents.item(0);

                //Create a tag to style mapping.

                myDocument.xmlImportMaps.add(myDocument.xmlTags.item("unit"), myDocument.paragraphStyles.item("table_header_unit"));

                //Map the XML tags to the defined styles.

                myDocument.mapXMLTagsToStyles();

      }

       

      Now I'd like a script to remove the mapping preferences.

       

      can anyone help or point me to relevant literature/documentation.

      Thanks.

      //Ot_Gu