3 Replies Latest reply on Jun 12, 2010 9:25 AM by Anil Yadav

    [JS-CS4: 'markup' is not working showing error

    Anil Yadav Level 1

      Hi,

       

      Earlier in CS2 I used to be able to tag selected text with the “markup” method. It was simple and worked placing tag markers around the highlighted text. However with CS4 I receive the error… "Can not change the element to be associated with this object. Try creating a new element." Can anybody help me out?

       

      myXmlElement1=app.activeDocument.xmlElements.item(0).xmlElements.add("test");
      myXmlElement=app.activeDocument.xmlElements[0].xmlElements[0];
      app.selection[0].markup(myXmlElement);

       


      Thanks,

      Anil Yadav