Skip to main content
sangeethak65390815
Known Participant
February 12, 2018
Question

Find the text with in processing instruction

  • February 12, 2018
  • 1 reply
  • 588 views

Hai,

     I am need to find text within  the xmlInstruction tag using indesign scripting. Please guide Me.

eg:

the above Image,  text of "Horizonworld" I want of find out. But i don't know how to find.

Thanks in advance,

This topic has been closed for replies.

1 reply

Jongware
Community Expert
Community Expert
February 12, 2018

Have you checked yourself for possible solutions, for instance by looking at InDesign ExtendScript API (13.0): XMLElement properties?

Loic.Aigon
Legend
February 12, 2018

An XMLInstruction instance doesn't seem to have any property or method to retrieve the tagged text which is kind of logic given the processing instruction concept:

Understanding Processing Instructions in XML

Only workaround for you is to duplicate the PI to a temp frame and look at the story contents.