🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9130

Re: How to add XML Element

#9130
From: Dave_Saunders
Date: Mon, 11 Sep 2006 14:58
11 lines
1166 bytes
mydoc.xmlElements[1]

doesn't look right. Shouldn't that be:

mydoc.xmlElements[0]

That's if you're aiming for the root element, anyway.

The way to tackle this kind of problem, aside from asking here, is to use ESTK. Put a breakpoint at the line that doesn't work. Run the script. And then type the command a bit at a time into the JavaScript console until you get the error. Then you'll know just which part of the statement is causing the problem.

Dave
Technical Details
Message-ID: <3bc19071.7@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!feeder.news-service.com!newsfeed.freenet.de!news.germany.com!news.isoc.lu!webcrossing
References: <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: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!feeder.news-service.com!newsfeed.freenet.de!news.germany.com!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: How to add XML Element
Message-ID: <3bc19071.7@webcrossing.la2eafNXanI>
Date: Mon, 11 Sep 2006 07:58:12 -0700
References: <3bc19071.-1@webcrossing.la2eafNXanI>
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit