Article View: adobe.scripting.indesign
Article #8821Re: Javascript doubt
From: Dave_Saunders
Date: Sat, 23 Sep 2006 12:24
Date: Sat, 23 Sep 2006 12:24
11 lines
928 bytes
928 bytes
You do it by creating a new xmlElement. This means you have to decide where in the current structure you want to add it.
Ah, you need to get a reference to the tag you just made, so make it like this:
mytag = mydoc.xmlTags.add({name:"ce:underline"});
Now you do this:
myEl = mydoc.xmlElements[0].xmlElements.add(mytag, mytext);
Dave
Technical Details
Message-ID:
<3bc1bf71.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.germany.com!news.isoc.lu!webcrossingReferences:
<3bc1bf71.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,7de22d946ccdbc69 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@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: Javascript doubt Message-ID: <3bc1bf71.2@webcrossing.la2eafNXanI> Date: Sat, 23 Sep 2006 05:24:29 -0700 References: <3bc1bf71.-1@webcrossing.la2eafNXanI> Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit