Article View: adobe.scripting.indesign
Article #21084Import XML File
From: Dupr� David
Date: Wed, 15 May 2002 12:17
Date: Wed, 15 May 2002 12:17
14 lines
1412 bytes
1412 bytes
Hello,
I try to import a xml file whith the little code below. And I've got a error message on the 'importXML' line ! Cna you help me ?
Thank's, David.
Dim myInDesign As InDesign.Application Dim myDocument As InDesign.Document Dim myXMLElement As InDesign.XMLElement Dim myXMLElements As InDesign.XMLElements
Set myInDesign = CreateObject("InDesign.Application.2.0") Set myDocument = myInDesign.Documents.Add
myDocument.ImportXML "c:\test.xml"
Set myXMLElements = myXMLElement.XMLElements.Item(1)
For i = 1 To myXMLElements.Count Set myXMLElement = myXMLElements.Item(i) Debug.Print myXMLElement.MarkupTag Next
Technical Details
Message-ID:
<ef88a83.-1@WebX.aaQKaf7vad4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!supernews.com!peer1-sjc1.usenetserver.com!usenetserver.com!news.tele.dk!small.news.tele.dk!195.64.68.27!newsgate.cistron.nl!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,a3338dfcec7720e0,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-05-15 05:38:27 PST From: "Dupr� David" <dd@circum.fr> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!supernews.com!peer1-sjc1.usenetserver.com!usenetserver.com!news.tele.dk!small.news.tele.dk!195.64.68.27!newsgate.cistron.nl!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Import XML File Message-ID: <ef88a83.-1@WebX.aaQKaf7vad4> Date: Wed, 15 May 2002 05:17:07 -0700 Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit