Importing XML using AppleScript in CS5.

Hi, totally new to inDesign but do programming and database work.  I am looking to import an XML file created from our database.  I can do a basic import manually after creating document and importing xml to load tags then creating text box element and tagging it and placeholder text.  Now trying to automate using AppleScript.  Found some samples from inDesign but not sure how to tie all the pieces together.  Does anyone have a simple example that takes a small XML file and loads a few records automatcally into indesign.  Maybe, create new document, create textbox element and create text placeholders and tags then import xml file?
Thanks,
Joe

I don't work in applescript, but:
Does anyone have a simple example that takes a small XML file and loads a few records automatcally into indesign.  Maybe, create new document, create textbox element and create text placeholders and tags then import xml file?
Err, when you say "records," you have me slightly concerned.
Because it is quite difficult to get Data Merge -like functoinality with XML.
Have you tested (and validated!) this workflow withoutscripting?

Similar Messages

  • How to read specific value in XML using AppleScript?

    I have a XML file which I get from Mediainfo, and I want to get the value of Format of the Audio Track from it (In this case, ALAC) using AppleScript. Could anybody help me with this? Thanks.
    <?xml version="1.0" encoding="UTF-8"?>
    <Mediainfo version="0.7.69">
    <File>
    <track type="General">
    <Complete_name>/Volumes/Macintosh HDD/Movies/Strike the Blood 12.mov</Complete_name>
    <Format>MPEG-4</Format>
    <Format_profile>QuickTime</Format_profile>
    <Codec_ID>qt  </Codec_ID>
    <File_size>1.64 GiB</File_size>
    <Duration>23mn 41s</Duration>
    <Overall_bit_rate_mode>Variable</Overall_bit_rate_mode>
    <Overall_bit_rate>9 887 Kbps</Overall_bit_rate>
    <Movie_name>[ReinForce] Strike the Blood - 12 (BDRip 1920x1080 x264 FLAC)</Movie_name>
    <Encoded_date>UTC 1904-01-01 00:00:00</Encoded_date>
    <Tagged_date>UTC 1904-01-01 00:00:00</Tagged_date>
    <Writing_application>Lavf55.33.100</Writing_application>
    </track>
    <track type="Video">
    <ID>1</ID>
    <Format>AVC</Format>
    <Format_Info>Advanced Video Codec</Format_Info>
    <Format_profile>[email protected]</Format_profile>
    <Format_settings__CABAC>Yes</Format_settings__CABAC>
    <Format_settings__ReFrames>4 frames</Format_settings__ReFrames>
    <Codec_ID>avc1</Codec_ID>
    <Codec_ID_Info>Advanced Video Coding</Codec_ID_Info>
    <Duration>23mn 41s</Duration>
    <Bit_rate>9 084 Kbps</Bit_rate>
    <Width>1 920 pixels</Width>
    <Height>1 080 pixels</Height>
    <Display_aspect_ratio>16:9</Display_aspect_ratio>
    <Frame_rate_mode>Variable</Frame_rate_mode>
    <Frame_rate>23.976 fps</Frame_rate>
    <Color_space>YUV</Color_space>
    <Chroma_subsampling>4:2:0</Chroma_subsampling>
    <Bit_depth>8 bits</Bit_depth>
    <Scan_type>Progressive</Scan_type>
    <Bits__Pixel_Frame_>0.183</Bits__Pixel_Frame_>
    <Stream_size>1.50 GiB (92%)</Stream_size>
    <Writing_library>x264 core 142</Writing_library>
    <Encoding_settings>cabac=1 / ref=4 / deblock=1:-2:-2 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=0.70:0.00 / mixed_ref=0 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=32 / lookahead_threads=5 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=9 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=16.0 / qcomp=0.70 / qpmin=10 / qpmax=20 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00</Encoding_settings>
    <Language>English</Language>
    <Encoded_date>UTC 1904-01-01 00:00:00</Encoded_date>
    <Tagged_date>UTC 1904-01-01 00:00:00</Tagged_date>
    </track>
    <track type="Audio">
    <ID>2</ID>
    <Format>ALAC</Format>
    <Codec_ID>alac</Codec_ID>
    <Codec_ID_Info>Apple Lossless Audio Codec</Codec_ID_Info>
    <Duration>23mn 41s</Duration>
    <Duration_LastFrame>-51ms</Duration_LastFrame>
    <Bit_rate_mode>Variable</Bit_rate_mode>
    <Bit_rate>799 Kbps</Bit_rate>
    <Channel_s_>2 channels</Channel_s_>
    <Channel_positions>Front: L R</Channel_positions>
    <Sampling_rate>48.0 KHz</Sampling_rate>
    <Bit_depth>16 bits</Bit_depth>
    <Stream_size>135 MiB (8%)</Stream_size>
    <Language>11</Language>
    <Encoded_date>UTC 1904-01-01 00:00:00</Encoded_date>
    <Tagged_date>UTC 1904-01-01 00:00:00</Tagged_date>
    </track>
    </File>
    </Mediainfo>

    Hello
    You may try something like the following script. It is indeed a Perl script wrapped in AppleScript, though.
    set f to (choose file with prompt "Choose the XML file")'s POSIX path
    get_audio_format(f)
    on get_audio_format(f)
            string f : POSIX path of source XML file
        do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & "
    use strict;
    use XML::LibXML;
    my $parser = XML::LibXML->new();
    my $doc = $parser->parse_file($ARGV[0]);
    print $doc->find('/Mediainfo/File/track[@type=\"Audio\"]/Format');
    EOF"
    end get_audio_format
    And a littel more general-purpose script is -
    set f to (choose file with prompt "Choose the XML file")'s POSIX path
    get_value_at_xpath(f, "/Mediainfo/File/track[@type=\"Audio\"]/Format")
    on get_value_at_xpath(f, xpath)
            string f : POSIX path of source XML file
            string xpath : XPath of target node
        do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " " & xpath's quoted form & "
    # $ARGV[0] : xml file
    # $ARGV[1] : xpath
    use strict;
    use XML::LibXML;
    my $parser = XML::LibXML->new();
    my $doc = $parser->parse_file($ARGV[0]);
    print $doc->find($ARGV[1]);
    EOF"
    end get_value_at_xpath
    Hope this may help,
    H
    PS. If copied code has extra spaces in front of every line, which appears to be the case with some browsers including Firefox, please remove them before running the script.

  • How do I save an excel file as XML using applescript.

    I set display alerts to false, but excel will not save.  I get error -1708.
    My code looks as such:
    set theFile to "Macintosh HD:Users:Dustin:Documents:products.xlsx"
    tell application "Microsoft Excel"
      activate
      open theFile
              set display alerts to false
              tell active sheet
      save as filename "products.xml" file format XML spreadsheet file format
              end tell
      close active workbook without saving
              set display alerts to true
    end tell
    end
    If I remove the code to set the display alerts, excel pops up an display alert to continue or cancel the save.
    I'll take anything at this point....

    Are you sure you want to do a "SAVEAS" to create the PDF?  What version of MS Office are you using?
    One of the best ways to figure out how to do something with ActiveX in Excel is to first do it in Excel by recording a Macro.  See what code Excel generates, then try to model that in LabVIEW.
    I don't see .pdf as an option you can save Excel as a filetype to (Excel 2007).  But when I go to the Excel 2007 button, Save As, then PDF or XPS while recording a macro, I get this code.
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
    "C:\Documents and Settings\CurrentUser\Desktop\FILENAME.pdf", Quality:= _
    xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
    OpenAfterPublish:=True
       This shows me you should be usingthe ExportAsFixedFormat method on the worksheet as opposed to trying to use the SaveAs method on the workbook.  (But the workbook object as that same method as well.)

  • Importing XML using OWB

    We are developing a new application using Oracle 10g R2. This is a hybrid warehouse/on-line system. Some users will need access to current information (less than 24 hours old) while others will need to access data up to 12 months old.
    The system will receive data from another system via advanced queues (AQ), the data being pushed by the source system in small batches. The data will be in XML format and needs to be loaded into several tables. We also need to do some complex transformations on some of the data (e.g. concatenating child records into a summary text field in the poarent record) and populate a couple of summary type tables.
    I have been asked to look at implementing this using PL/SQL stored procedures.
    I am currently investigating the use of OWB to generate the PL/SQL.
    Is this a viable approach? Are there any good examples of how to do this kind of thing?
    Although I have been developing with PL/SQL for many years, I am new to OWB and AQ and my XML experience is limited.
    Thanks in advance.

    Nevermind - here's the code for anyone interested:
    Normally with URLLoader you'd do this:
    // new instance of URLLoader class
    var myXMLloader:URLLoader = new URLLoader();
    myXMLloader.load( new URLRequest( 'common_upload_files/XML_files/120_display_list.xml' ));  ...wherever the XML file is relative to the project swf
    // add event listener to instance to issue event when finished loading xml
    myXMLloader.addEventListener( Event.COMPLETE, onXMLLoaded_120 );
    ...where onXMLLoaded_120 would deal with parsing the xml data.
    To do the same in AIR:
    var loadXMLfile:File = File.documentsDirectory.resolvePath("PlugTV Media Files/120_display_list.xml");   ...the XML file is in the user's 'Documents' directory (works on Win, Mac, Linux)
    // Pass the file.url property to the URLRequest constructor
    var myXMLloader:URLLoader = new URLLoader(new URLRequest(loadXMLfile.url));
    myXMLloader.addEventListener(Event.COMPLETE, onXMLLoaded_120)   
    ...where onXMLLoaded_120 would deal with parsing the xml data.

  • a tag is creating error in import XML in InDesign CS5.5

    Hi All,
    I am doing upgrade from InDesign CS2 to InDesign CS5.5.
    I have indt file. It has been designed using the CS2 and now converted that indt file into CS5.5 using InDesign CS5.5.
    But I am facing some serious issue while doing export to pdf in CS5.5 version.
    I am following below steps:
    1) Open indt file.
    2) File Menu --> Import XML... [This XML file contains <a href="website link"> html tag]
    3) XML Import Options [no change- defalut options selected]
    4) Ideally it should merge this XML data with the indt file but it is asking me for some input and showing me "Find:" dialog [Check below snapshot]
    I did some research and find out that I am getting this Find dialog because of the <a> tag in XML. when I removed the <a> tag from XML then it didn't give any dialog box and imported XML without any issue.
    I am getting that xml from system and I cant remove the <a> tag from xml manually.
    However I was not getting any error while doing import XML in CS2 version.
    Please can anybody help in this?

    When there is "http://" in anchor tag it will pop up this input window in manual export from indd/indt to pdf and it will failed in export through action script.
    I communicated with the Adobe and it was bug. Adobe has confirmed that they would realease the patch for same sometime later, but I have not heard of anything. I got work around by removing it "http://" using java.

  • Import xml data in Access when multiple rows use the same fieldname

    HI.
    First of all sorry for my english :-) I have a LiveCycle Designer ES form with multiple rows that I send via e-mail as XML data.
    example:
    Row 1
    Firstname: John  Lastname: Dow
    Row 2
    Firstname: Steve  Lastname: Austin
    The exported XML is OK but when I want to import it into my Access database, only one row is imported. I pretty sure that the problem comes from the fact that may exported XML use the same fieldname (what is important if I want to import data in the correct Access field) but I don't know what to do to be able to import all the rows of the same Form.
    Any idea?
    Thanks a lot
    Frederic

    Hi Viktor,
    In case of order recognition rules you should increase the relevancy in the newer version of the cartridge so appropriate ORR will be triggered. In other xqueries, you can try using new namespace as a model variable for each and every version of the cartridge
    Regards,
    JP

  • When Importing XML table using "merge content" I get content but none of the formatting

    I'm just wondering, is this by design?
    I generated this by exporting a table.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Root>
    <Story>
    <Table tblName="tsBasicTable" xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/" aid5:tablestyle="tsBasicBody" aid:table="table" aid:trows="7" aid:tcols="9">
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="24.0"/>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="2">Alcohol</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="2">Tobacco</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="2">Marijuana</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="2">Prescription drugs</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="24.0">Grade</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">Town 2013</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">State 2013</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">Town 2013</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">State 2013</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">Town 2013</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">State 2013</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">Town 2013</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">State 2013</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="24.0">6</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">9.0</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">10.2</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">4.2</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">2.4</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">9.6</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">7.2</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">8.4</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">11.4</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="24.0">8</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">12.0</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">15.2</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">15.2</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">12.8</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">13.6</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">15.2</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">4.8</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">10.4</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="24.0">10</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">9.0</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">17.0</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">46.0</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">44.0</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">5.0</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">2.0</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">38.0</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">50.0</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="24.0">12</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">12.0</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">19.2</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">14.4</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">14.4</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">16.8</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">32.4</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">19.2</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">22.8</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="24.0">All</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">10.5</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">15.4</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">20.0</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">18.4</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">11.3</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">14.2</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">17.6</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="64.0">23.7</Cell>
    </Table>
    </Story>
    </Root>
    Say I take that XML, change all instances of aid:ccolwidth="24.0" to aid:ccolwidth="26.0" and replace
    <Cell aid:table="cell" aid:crows="1" aid:ccols="2">Alcohol</Cell>
    with
    <Cell aid:table="cell" aid:crows="1" aid:ccols="2">Alcoholism</Cell>
    'I save that XML.
    In ID: Import XML... selecting "Merge Content", "only import elements that match existing structure" & "import text elements into tables if tags match"
    The cell with "Alcohol" updates, but the column widths don't change.
    Is this by design?
    When I select "Append Content" I get a (new) table with the formatting (column widths) as specified in the updated aid:ccolwidth and of course, the updated content. When merging content are you giving up all rights to updating formatting at the same time?
    Thanks in advance for any insights.

    Hello,
    The existence check on the Salutation descriptor is likely check cache, as it is the default. Because of this, when you merge the Salutation with id=2, it will check the cache and not find it and so register it as a new object instead. You have 2 options, the first is to read it instead of creating it new. The second is to change your existence checking option so that it will either go tothe database or assume existence so that it is more appropriate for how you intend to use these types of objects in your mappings. For instance, if you never plan to create new ones, assume existence might be more appropriate.
    I suspect though that for most applications, reading the object first is the best option performance wise.
    Best Regards,
    Chris

  • Moving a layer in Photoshop CS5 using Applescript

    I have a layer in a document called "logo" and i want to duplicate it to every open document and then move it to a specific spot in each document
    I got the duplicating thing happening but cant seem to move the bounds of the layer (says it is read only and cannot be changed)
    here is what I have written
    tell application "Adobe Photoshop CS5"
    activate
    set theDocs to count of documents
    repeat with i from 1 to theDocs
    duplicate art layer "logo" of current document to document i
    end repeat
    repeat with i from 1 to theDocs
    set current document to document i
    tell document i
    set bounds of art layer "logo" to {0.456666666667, 6.38, 2.88, 6.77}
    --Adobe Photoshop CS5 got an error: Property is read/only and cannot be changed
    end tell
    end repeat
    end tell
    This doesn't error but also doesn't move the logo at all
    tell application "Adobe Photoshop CS5"
    activate
    set theDocs to count of documents
    repeat with i from 1 to theDocs
    duplicate art layer "logo" of current document to document i
    end repeat
    repeat with i from 1 to theDocs
    set current document to document i
    tell document i
    set properties of art layer "logo" to {bounds:{0.456666666667, 6.38, 2.88, 6.77}}
    end tell
    end repeat
    end tell
    anyone know what the language is to move the layer around?

    In any language the way to move a layer x,y is to use translate… You will need to do the math from current x,y to required x,y given a distance… A read only property is just that regardless of language… Here is a quick example of how I did this kind of thing using Applescript… I still do the same method now but use the ESTK instead…
    tell application "Adobe Photoshop CS2"
    activate
    -- Store the app settings
    set User_Rulers to ruler units of settings
    set User_Dialogs to display dialogs
    set ruler units of settings to pixel units
    set display dialogs to never
    set Doc_Ref to the current document
    tell Doc_Ref
    -- Store the image res so we can put it back
    set Original_Res to resolution
    -- Change to work at 72 dpi
    resize image resolution 72 resample method none
    -- Move horizontal 1 inch
    translate layer 1 delta x 72 as pixels
    -- Move vertical 1 inch
    translate layer 1 delta y 72 as pixels
    -- Read the bounds propety
    set Layer_Bounds to bounds of layer 1
    log Layer_Bounds
    -- Move the layer using bounds to top/left
    translate layer 1 delta x -(item 1 of Layer_Bounds) as pixels
    translate layer 1 delta y -(item 2 of Layer_Bounds) as pixels
    -- Put back the image res
    resize image resolution Original_Res resample method none
    end tell
    -- Put back the app settings
    set ruler units of settings to User_Rulers
    set display dialogs to User_Dialogs
    end tell
    You should get the general idea of how this works from this. It should move the first layer across 1 inch, down i inch then put it top/left. It assumes you have a layer that is not a background layer nor is it locked in any way…

  • Using importdata to import xml data into dynamic PDF form

    Hi again,
    Me and my colleagues have a problem using the importData service to import some xml data into an empty PDF form (represented as an XFA input variable).
    In the server log I get the error that Only XDP data is supported for XFA forms, however I only have the xml data and not the entire xdp available.
    Is this really not possible to to (like importing xml data to a form is possible in the Designer when creating forms).
    I hope the scenario is understandable
    Sincerely
    Kim Christensen
    Dafolo A/S
    Denmark
    PS: During the various projects I am working on I keep running into problems...however I am totally new to LiveCycle so I consider this very informative learning steps and appreciate all your help :-)

    Hi again,<br /><br />I have been experimenting a little with both the renderPDFForm and importData services. However I don't seem to be ble to make them work as I  need them to.<br /><br />My scenario is simple, I have one (call it a template xdp/PDF form) and lots of data in xml files (around 1000), that I need to import into the template. Therefore I have set up a "Watched Folder" to take the xml as a document (I guess this is a requirement) and then I need either the renderPDF or importData services to import the xml data into the template.<br /><br />I would like to know how I should setup the services to make this work.<br /><br />When I try to use importdata I setup the following:<br /><br />PDF document: set to be the template i need to import the xml to)<br /><br />Input data: the document variable (an xml file) that is passed to the   Watched Folder<br /><br />Data merged PDF: set to an out xfaform<br /><br />When I do this I get an Coercion error in the server log:<br /><br />2007-11-15 13:27:05,324 ERROR [com.adobe.workflow.AWS] stalling action-instance: 1506 with message: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.<br />     at com.adobe.idp.dsc.util.CoercionUtil.toDOMDocument(CoercionUtil.java:656)<br />     at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:878)<br />     at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:803)<br />     at com.adobe.workflow.datatype.runtime.support.AbstractDataTypeRuntimeHandler.coerceFrom(Abs tractDataTypeRuntimeHandler.java:64)<br />     at com.adobe.workflow.datatype.runtime.support.AbstractComplexDataTypeRuntimeHandler.getNode (AbstractComplexDataTypeRuntimeHandler.java:47)<br />     at com.adobe.workflow.dom.VariableElement.setBoundValue(VariableElement.java:93)<br />     at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue(PATExecutionCo ntextImpl.java:729)<br />     at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataWithExpression(PATEx ecutionContextImpl.java:335)<br />     at com.adobe.idp.workflow.dsc.service.SetValueService.execute(SetValueService.java:46)<br />...<br />Caused by: ALC-DSC-119-000: com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: <document state="passive" senderVersion="3" persistent="false" senderPersistent="true" passivated="true" senderPassivated="true" deserialized="true" senderHostId="127.0.0.1/172.16.10.125" callbackId="0" senderCallbackId="7" callbackRef="null" isLocalizable="true" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="8039" contentType="application/xml" length="-1"><cacheId/><localBackendId/><globalBackendId/><senderLocalBackendId/><senderGl obalBackendId/><inline><?xml version="1.0" encoding="UTF-8"?><br /><form1><br />  <sub_BlanketTop /><br />  <sub_SubjectTop><br />    <f...</inline><senderPullServantJndiName>adobe/idp/DocumentPullServant/adobejb_server1</s enderPullServantJndiName><attributes file="c:\NCRConvert\ProcessForm\stage\Wx450d4b32843a0b0bcb8ef99e\NCR-00564_dXAE3soH.xml"/ ></document> of type: com.adobe.idp.Document to type: interface org.w3c.dom.Document<br />     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)<br />     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)<br /><br />However it is possible to manually import the xml data in Acrobat Professional without any problems.<br /><br />When I use the renderPDFForm with the following settings:<br /><br />Form to render: literal value that points to the template<br /><br />Form data: document variable from watched folder (xml)<br /><br />Content Root URI: repository://<br /><br />With these settings I also get a coercion error, however it does not seem to be exactly the same.<br /><br />Sincerely<br />Kim

  • How to set xml tag to nothing in indesign using applescript?

    Hi guys,
    I need set xml tag to nothing(for tables)  in indesign using applescript.
    Please help me.

    Hi,
    tell application "Adobe InDesign CC 2014"
        tell active document
            if (count of story) > 0 then
                tell story 1
                    if (count of tables) > 0 then
                        tell table 1
                            set tag_name to associated XML element ----------------> i can't get xml  tag, i am receiving the  xml tag is nothing.
                            if (tag_name = nothing) then
                                display dialog ("This table has no tag")
                            else
                                set markup_tag to markup tag of tag_name
                                set n to name of markup_tag
                                display dialog ("Tag name is " & n)
                            end if
                        end tell
                    end if
                end tell
            end if
        end tell
    end tell
    I can't get xml tag for table,  i am received nothing

  • Importing xml page changed the language used

    hi,
    i am having an issue on my customized oaf page which is an advanced search page.
    We are using french in OA. Evrything in the page is in French
    including the results table page
    i exported an oaf xml page (using xmlexporter without specifing the language). the xmlexporter only works when the -translation and -language are not specified...
    i made a few changes in the xml page (add new search criteria)
    and imported it using xmlimporter.
    there is only one problem, the result table column headers are all in the english.
    Before it was in french...
    any idea ?
    thanks
    Dan
    Message was edited by:
    user535835

    i have found in the xmlexporter section how to export the language in the xlf format.
    I just exported it successfully.
    now i have my xml file and my xlf file.
    i did not found in the dev guide how to make the xlf work correctly.
    I am connected in OA in french
    and i still have part of my page in english and part in french.
    I want the page to be full in french.
    i did not found any option in the xmlimporter where i could specify the xlf file ...
    and i did not found anywhere in the dev guide where i should place this xlf file so that the OA would translate the page correctly
    thanks :)
    any idea ?
    Message was edited by:
    user535835

  • SSMS 2012:XML File Query: Importing XML data using a CTE-Incorrect syntax near 'BLOB'?

    Hi all,
    From https://www.simple-talk.com/content/print.aspx?article=1756, I mimicked to create the following sql code to do Importing XML data using a CTE:
    ---Importing XML data using a CTE -----Ad-Hoc XML File Query--simple-talk---1020AM 27 Feb 2015
    ---query the XML Blob using a CTE (pulling from the XML file each time
    USE OPENXMLtesting1
    GO
    With XmlFile (Contents) AS (
    SELECT CONVERT (XML, BulkColumn)
    FROM OPENROWSET (BULK 'C:\XML FilesMicrosoft-Samples\books.xml', SINGLE BLOB) AS XmlData
    SELECT
    FROM XmlFile
    GO
    I got the following message:
    Msg 102, Level 15, State 1, Line 4
    Incorrect syntax near 'BLOB'.
    I have no ideas why it is incorrect in that code statment. Please kindly help, advise and respond.
    Thanks in advance,
    Scott Chang
    P. S. The books.xml file was copied from the Microsoft samples:
    <?xml version="1.0"?>
    <catalog>
    <book id="bk101">
    <author>Gambardella, Matthew</author>
    <title>XML Developer's Guide</title>
    <genre>Computer</genre>
    <price>44.95</price>
    <publish_date>2000-10-01</publish_date>
    <description>An in-depth look at creating applications
    with XML.</description>
    </book>
    <book id="bk102">
    <author>Ralls, Kim</author>
    <title>Midnight Rain</title>
    <genre>Fantasy</genre>
    <price>5.95</price>
    <publish_date>2000-12-16</publish_date>
    <description>A former architect battles corporate zombies,
    an evil sorceress, and her own childhood to become queen
    of the world.</description>
    </book>
    <book id="bk103">
    <author>Corets, Eva</author>
    <title>Maeve Ascendant</title>
    <genre>Fantasy</genre>
    <price>5.95</price>
    <publish_date>2000-11-17</publish_date>
    <description>After the collapse of a nanotechnology
    society in England, the young survivors lay the
    foundation for a new society.</description>
    </book>
    <book id="bk104">
    <author>Corets, Eva</author>
    <title>Oberon's Legacy</title>
    <genre>Fantasy</genre>
    <price>5.95</price>
    <publish_date>2001-03-10</publish_date>
    <description>In post-apocalypse England, the mysterious
    agent known only as Oberon helps to create a new life
    for the inhabitants of London. Sequel to Maeve
    Ascendant.</description>
    </book>
    <book id="bk105">
    <author>Corets, Eva</author>
    <title>The Sundered Grail</title>
    <genre>Fantasy</genre>
    <price>5.95</price>
    <publish_date>2001-09-10</publish_date>
    <description>The two daughters of Maeve, half-sisters,
    battle one another for control of England. Sequel to
    Oberon's Legacy.</description>
    </book>
    <book id="bk106">
    <author>Randall, Cynthia</author>
    <title>Lover Birds</title>
    <genre>Romance</genre>
    <price>4.95</price>
    <publish_date>2000-09-02</publish_date>
    <description>When Carla meets Paul at an ornithology
    conference, tempers fly as feathers get ruffled.</description>
    </book>
    <book id="bk107">
    <author>Thurman, Paula</author>
    <title>Splish Splash</title>
    <genre>Romance</genre>
    <price>4.95</price>
    <publish_date>2000-11-02</publish_date>
    <description>A deep sea diver finds true love twenty
    thousand leagues beneath the sea.</description>
    </book>
    <book id="bk108">
    <author>Knorr, Stefan</author>
    <title>Creepy Crawlies</title>
    <genre>Horror</genre>
    <price>4.95</price>
    <publish_date>2000-12-06</publish_date>
    <description>An anthology of horror stories about roaches,
    centipedes, scorpions and other insects.</description>
    </book>
    <book id="bk109">
    <author>Kress, Peter</author>
    <title>Paradox Lost</title>
    <genre>Science Fiction</genre>
    <price>6.95</price>
    <publish_date>2000-11-02</publish_date>
    <description>After an inadvertant trip through a Heisenberg
    Uncertainty Device, James Salway discovers the problems
    of being quantum.</description>
    </book>
    <book id="bk110">
    <author>O'Brien, Tim</author>
    <title>Microsoft .NET: The Programming Bible</title>
    <genre>Computer</genre>
    <price>36.95</price>
    <publish_date>2000-12-09</publish_date>
    <description>Microsoft's .NET initiative is explored in
    detail in this deep programmer's reference.</description>
    </book>
    <book id="bk111">
    <author>O'Brien, Tim</author>
    <title>MSXML3: A Comprehensive Guide</title>
    <genre>Computer</genre>
    <price>36.95</price>
    <publish_date>2000-12-01</publish_date>
    <description>The Microsoft MSXML3 parser is covered in
    detail, with attention to XML DOM interfaces, XSLT processing,
    SAX and more.</description>
    </book>
    <book id="bk112">
    <author>Galos, Mike</author>
    <title>Visual Studio 7: A Comprehensive Guide</title>
    <genre>Computer</genre>
    <price>49.95</price>
    <publish_date>2001-04-16</publish_date>
    <description>Microsoft Visual Studio 7 is explored in depth,
    looking at how Visual Basic, Visual C++, C#, and ASP+ are
    integrated into a comprehensive development
    environment.</description>
    </book>
    </catalog>

    I found the mistakes I made and I corrected them. The newly revised/corrected code is:
    USE OPENXMLtesting1
    GO
    With XmlFile (Contents) AS (
    SELECT CONVERT (XML, BulkColumn)
    FROM OPENROWSET (BULK 'C:\Temp\books.xml', SINGLE_BLOB) AS XmlData
    SELECT *
    FROM XmlFile
    GO
    It worked: Results
         Contents
    1  <catalog><book.id="bk101"><author>Gambardella.M...
    If I clicked on this, I got a listing of the whole book.xml!!  I don't know what it means.  Please comment and respond.
    Thanks,
    Scott Chang

  • Unabel to Import XML file in Internet Explorer 9 Using PHP

    I have created a project Using PHP in which i need to import a xml file for my further use, I am able to import XML File  in IE 10 & IE11 but unable to import in IE9. 

    Hi Sunil,
    I recommend that you post in some PHP related forums, since this forum is only for VSTO related questions.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Export/Import xml from dynamic pdf form using java

    Hi,
    I have been searching for the last 2-3 days on the internet for this. Some posts do talk about it, but none have provided the answer I was looking for. Hopefully this is the correct forum to post the question in.
    I am working on a desktop swing application that works on extracting and changing data in a XFA form, I would like to export the form's content modify it and import it back using java. This is so easy with the Adobe Reader, where it nicley exports the form content as an XML document, you can change it manually and the import the data back. I am searching for a way of doing this in java. I found XPAAJ.jar mentioned in some forums, that may make this easy. I havent been able to use it, since I cant find it anywhere.
    I found a blog from Mike Potter
    http://blogs.adobe.com/mikepotter/2006/07/download_xpaaj.html
    This says that XPAAJ is free as long as I use it on forms developed using livecycle. I dont own livecycle, but the forms that I am working has been built using livecycle.  So my questions are:
    1. Is XPAAJ the correct library to use, to export and import XML data from a dynamic pdf form?
    2. Is XPAAJ free to use and distribute as long as it works on pdf forms developed by livecycle?
    3. Where can I download XPAAJ from?
    4. If XPAAj is no longer available, is there any other free library that does this?
    5. If there isn't any free library, how much would cost me to use and distribute the library along with my desktop application?
    Thanks
    Sethu

    Hi Sethu;
    First, its important to know that xpaaj never was a supported piece of software.  It was supplied "as is" with no support from Adobe.  It has been pulled and is no longer available from the Adobe web site.  Mike's blog is from 2006, so its really old information.
    1. Is XPAAJ the correct library to use, to export and import XML data from a dynamic pdf form?
    While the xpaaj library will import and export data to/from a form on the client, Adobe now recommends using the LiveCycle ES Forms server.
    2. Is XPAAJ free to use and distribute as long as it works on pdf forms developed by livecycle?
    The license stated that you need to own one of Adobe's server side products (not LiveCycle Designer, but one of the server side LiveCycle products).
    3. Where can I download XPAAJ from?
    XPAAJ was pulled by Adobe.  They found a few bugs and since it was unsupported software they just pulled it from the web site.
    4. If XPAAj is no longer available, is there any other free library that does this?
    Not from Adobe.  Adobe recommends using the LiveCycle ES Forms software for merging data and forms.
    5. If there isn't any free library, how much would cost me to use and distribute the library along with my desktop application?
    As far as I know there Adobe doesn't have a client side library available for this (merging dynamic XDP based forms with data).

  • [JS CS5] Resizing graphics after importing XML, but before placing on page

    I've been looking for an answer for this for a long time, and judging by the other posts here, many others are also.
    Given an XML file consisting of:
    <root>
         <products>
              <product>
                   <image href="file:///filepathhere"/>
                   <description>
              <product>
                   <image href="file:///filepathhere"/>
                   <description>
    I can import this into a layout, and drag the products element to a text frame. All the images appear inline, and then I run a script that uses XML Rules to locate the images, resize the image frames, and apply an object style. The trouble is, that once in a while the images references by the XML are so enormous that they simply exceed the bounds of the pasteboard, and things blow up.
    So what I want to do instead, is to somehow resize the images to a manageable size BEFORE I drag the products element into a text frame.
    Ole posted a possible solution here: http://forums.adobe.com/message/1108974#1108974
    In that post, he says that "If you're using CS4, can use the resize method to resize graphics that have not yet been placed in a layout." I've been trying to implement his "rough" script, and I can't work it out.
    This is what I have:
    var myRuleSet = new Array (new processImage);
    with (myDoc) {
         var elements = xmlElements;
         __processRuleSet(elements.item(0), myRuleSet);
    function ProcessImage(){
         this.name = "ProcessImage";
         this.xpath = "/root/products/product/image";
         this.apply = function(myElement, myRuleProcessor){
              var myImage = myElement.graphics.item();
              myImage.resize(CoordinateSpaces.innerCoordinates, AnchorPoint.centerAnchor, ResizeMethods.multiplyingCurrentDimensionsBy,[.1,.1]);
              myImage.parent.fit(FitOptions.frameToContent);
              return true;
    "myImage" isn't valid in the script above. Does anyone know if this is possible, and if so, what I'm doing wrong? Thanks for any light anyone can shed on this!

    After spending some more time with this today, I've realized that what Ole was talking about here: http://forums.adobe.com/message/1108974#1108974. He said that "If you're using CS4, you can use the resize method to resize graphics that have not yet been placed in a layout."
    What he was referring to was graphics that are in overset text, not graphics in XML that have been imported but not placed.
    So, there is no way that I know of to process images and image frames in imported XML that hasn't been placed in the layout yet.
    But, a good workaround to my problem that I developed was to first place the imported XML into a very tiny temporary text frame, so that all images are immediately overset. Then I process the images to a manageable size using the resize method, per Ole's suggestion. Then, and only then, do I move the content onto my layout. This avoids problems with graphics being pointed to in the XML that may be too large for the pasteboard.
    I hope this obscure technique is useful for someone!

Maybe you are looking for

  • How to find out the formatt type of a date.

    hello iam getting the date from some content server..then iam updating the date..the problem is before update i should know the date formatt of returned date from server so that i can set that formatt to the user entered date while updation..so how c

  • Maximum file size for itunes

    I want to know the maximum number of sings how many songs I can store in my itunes so may I ask if anyone can inform me if there's a maximum file size limit for itunes? Many thanks.

  • My windows was down but I can't find the installation CD in My T60

    My windows was down but I can't find the CD for windows XP home edition. I tried to call the local repair center and they said they only solve the hardward problem. Anyone knows where I should ask for help or where I can get the CD for windows XP hom

  • ThinkPad Configurations Tested?

    In the 27 years of the PC era I have never before purchased a computer that did not function for all purchased features. Now that I have my X61's working correctly, we love them. The problem was getting the wireless to work, which one can read in her

  • Can I open multiple tabs in Firefox when WINDOWS starts up? Command line limits to about 204 characters...

    I know how to configure Firefox so that it opens multiple tabs every time you open ''Firefox''. I want it to open multiple tabs when I start ''Windows''. Or in other words, I don't want to connect to multiple web pages every time I open a browser, ju