Article View: adobe.scripting.indesign
Article #795Retrieving XML comments from a textFrame selection
From: Justin_Monsees
Date: Wed, 04 Mar 2009 02:06
Date: Wed, 04 Mar 2009 02:06
9 lines
929 bytes
929 bytes
I am trying to retrieve an XML comment from a text frame that is selected by the user. I have been trying to use the following code and have been unsuccessful.
var myStoryID = myTextFrame.associatedXMLElements.xmlAttributes.itemByName("id").value;
I'm sure its just a matter of syntax as it often is with me. Any help would be much appreciated.
Thanks,
Justin M.
Technical Details
Message-ID:
<59b81b66.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,ee999cc4b8067730,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Justin_Monsees@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Retrieving XML comments from a textFrame selection Message-ID: <59b81b66.-1@webcrossing.la2eafNXanI> Date: Tue, 3 Mar 2009 18:06:20 -0800 Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit