is the document already tagged?
Thanks for your reply.
Yes the document was already tagged?
And your code place the PI in the end of the xml structure. I want the processing instruction in the insertionpoint or selected text, not in the end.
Any update? please help me to sort out this issue...
1 person found this helpful
var PI = app.selection.insertionPoints;
var xmlElementOfPI = PI.associatedXMLElements;
thanks Roland, it is helpful.