Article View: adobe.scripting.indesign
Article #9962[JS][CS2] Import XML to selected Element
From: Revier_Daniel
Date: Tue, 11 Jul 2006 17:37
Date: Tue, 11 Jul 2006 17:37
17 lines
1336 bytes
1336 bytes
I try to import a xml-file to a xmlElement and not the root. A xml-file was already imported before and after a few actions i want to import a specific part of the xml-file again with the merge option to set knew content
Here's my trail:
...
myXmlImport = app.activeDocument.xmlImportPreferences;
myXmlImport.createLinkToXML = false;
myXmlImport.ignoreUnmatchedIncoming = false;
myXmlImport.importStyle = 1481469289;
myXmlImport.importToSelected = true;
myXmlImport.removeUnmatchedExisting = false;
myXmlImport.repeatTextElements = true;
...
app.activeDocument.xmlElements.item("templates").xmlElements.item("collection").select();
app.activeDocument.importXML(myFile);
Please help!
Technical Details
Message-ID:
<3bc0e0dd.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.germany.com!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,3400098ef9a6234,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Revier_Daniel@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: [JS][CS2] Import XML to selected Element Message-ID: <3bc0e0dd.-1@webcrossing.la2eafNXanI> Date: Tue, 11 Jul 2006 10:37:21 -0700 Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.germany.com!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing