🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17814

Re: XML ELEMENTS IN A TEXTFRAME

#17814
From: Olav Kvern
Date: Mon, 12 May 2003 16:48
9 lines
1445 bytes
reyman--

Actually, Matt did answer your question. His point is that the return characters following the elements set the position of the XML text in the text frame. Tabs, spaces, and other characters inserted between the elements will also change the position of the elements within the text.

To accomplish this, add the characters to the root element, then add the child elements between them. This is generally easier to do by creating an XML file, then importing the XML structure into InDesign. I do not, in general, recommend using InDesign to create your XML structure--it's way more difficult than simply writing tags to a text file--something VB (or AppleScript) can do with ease.

Thanks,

Ole
Technical Details
Message-ID: <1de91708.2@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!hermes.visi.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de91708.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,5216b8a0e3383162
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-05-12 10:08:35 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!hermes.visi.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: XML ELEMENTS IN A TEXTFRAME
Message-ID: <1de91708.2@WebX.la2eafNXanI>
Date: Mon, 12 May 2003 09:48:40 -0700
References: <1de91708.-1@WebX.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit