Article View: adobe.scripting.indesign
Article #9116Re: How to add XML Element
From: Karthik_ind
Date: Mon, 11 Sep 2006 14:28
Date: Mon, 11 Sep 2006 14:28
14 lines
1095 bytes
1095 bytes
Thanks both of you Dave and Peter,
But still the same error message "undefined is not an object" appearing in line number 6.
----------------------------------------------
var mydoc = app.activeDocument;
var mytext = mydoc.selection[0];
for(i = 0; i < mydoc.xmlTags.length; i++) { if(mydoc.xmlTags.item[i].name == "ce:italic") { var mysel = mydoc.xmlElements[1].xmlElements.add(mydoc.xmlTags[i], mydoc.selection[0]); } }
----------------------------------------------
Please adivse me
Karthik
Technical Details
Message-ID:
<3bc19071.4@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.germany.com!news.isoc.lu!webcrossingReferences:
<3bc19071.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,60189a0a6646dcc0 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Karthik_ind@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.germany.com!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: How to add XML Element Message-ID: <3bc19071.4@webcrossing.la2eafNXanI> Date: Mon, 11 Sep 2006 07:28:53 -0700 References: <3bc19071.-1@webcrossing.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit