I tried this code:
tell application "Adobe InDesign CS6"
set ParaIdOrSecId to "ti0005"
set xpa to "//*[@*='" & ParaIdOrSecId & "']" as string
tell active document
tell XML element 1
set Requriedxpa to evaluate XPath expression using xpa
end tell
end tell
end tell
After executing, InDesign Shows a dialog box:
Content contains characters which cannot be encoded.
Why am I not able to execute it, even though its a valid xpath?