Article View: adobe.scripting.indesign
Article #9429Basic XML Help - did something go wrong with my Import XML?
From: bank5
Date: Sat, 19 Aug 2006 16:29
Date: Sat, 19 Aug 2006 16:29
18 lines
1356 bytes
1356 bytes
I imported this basic XML file: <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> Don't forget me this weekend! When I view the structure of it, in InDesign, it adds a whole bunch of attributes and elements (things like xml:space = preserve). There is also an element with: <<?>> mso-application progid="Word.Document. I'm using JavaScript to try to access the XML file but I have to drill down to reach the note node. app.activeDocument.xmlElements.item(0).xmlElements.item(3).xmlElements.item(0) Once I get there, I can't go any further to reference the to, from, heading and body elements. I'm guessing something went wrong with the import. Any help or advice on how I can access the to, from, body elements is greatly appreciated.
Technical Details
Message-ID:
<3bc15189.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!syros.belnet.be!news.belnet.be!news.stben.net!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,1974eb26b2690999,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: bank5@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Basic XML Help - did something go wrong with my Import XML? Message-ID: <3bc15189.-1@webcrossing.la2eafNXanI> Date: Sat, 19 Aug 2006 09:29:06 -0700 Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing