Import and flow the xml text in a indesign document

pls,anyone give me a solution for import and flow the xml text in a document.
thanks,
screen410099

See http://forums.adobe.com/thread/838745?tstart=0
Would you mind waiting a bit before asking again and again and again and then again? It's possible the person who can answer you question just didn't happen to read the forums this week.

Similar Messages

  • Importing and flowing multiple text docs into InDesign CS3

    I have multiple plain text files where each runs several pages long that I want to import into one document in ID CS3. I want to import them and have them flow in a single threaded text frame one after another over multiple pages. With a single multi-page text doc all I have to do is select Place and hold down the shift key and InDesign will add the necessary pages and flow the copy until the end of the doc. However, if I shift select the docs and try import them into a text frame by holding down the shift key, it will just flow the first doc in the group with no indication of overset text. I have tried placing multiple text docs holding down the shift and command key and that brings in all my docs on the first page but in separate text boxes with overset text for each doc. Is there a way to do this in InDesign or perhaps a plugin that can do this?
    Thanks
    Randy

    I tried to find this. It was posted 4/21/08 by Peter Kahrel (I can tell, because I can see my side of the discussion in my Sent folder) in response to a post I made entitled "Multiple Files". Maybe I'm not searching the forum archives properly, or maybe this was during the time last year when Adobe was trying (and failing) to update the forums. In any case, I'm sure at this point that Peter posted this for public consumption, so I don't think he's going to mind if I post it again:
    // Description: Place multiple textfiles as one story
    #target indesign
    preset = "/d/books/test/*.doc";
    app.wordRTFImportPreferences.useTypographersQuotes = false;
    app.wordRTFImportPreferences.convertPageBreaks = ConvertPageBreaks.none;
    app.wordRTFImportPreferences.importEndnotes = true;
    app.wordRTFImportPreferences.importFootnotes = true;
    app.wordRTFImportPreferences.importIndex = true;
    app.wordRTFImportPreferences.importTOC = false;
    app.wordRTFImportPreferences.importUnusedStyles = false;
    mask = prompt( 'Enter a file path/mask.\r\r' +
       'Examples:\r' +
       'd:\\books\\test\\*.rtf   /d/books/test/*.rtf', preset );
    if( mask == null ) exit();  // Cancel pressed
    ff = Folder( File(mask).path ).getFiles( File(mask).name );
    if( ff.length > 0 )
       placed = [];
       missed = [];
       tframe = app.documents.add().textFrames.add(
          { geometricBounds : [36, 36, 400, 400] } );
       placedstory = tframe.parentStory;
       app.scriptPreferences.userInteractionLevel = 
          UserInteractionLevels.neverInteract;
       pb = initprogressbar( ff.length, 'Loading');
       for( i = 0; i < ff.length; i++ )
          pb.value = i;
          try
             placedstory.insertionPoints[-1].contents = '£0';
             placedstory.insertionPoints[-1].place( ff[i] );
             placedstory.insertionPoints[-1].contents = '\r\r';
             placed.push( ff[i].name );
          catch(_)
             missed.push( ff[i].name );
       app.scriptPreferences.userInteractionLevel = 
          UserInteractionLevels.interactWithAll;
       inform = '';
       if( placed.length > 0 )
          inform = 'Placed ' + ff.length + ' files (in this order):\r\r' + placed.join('\r');
       if( missed.length > 0 )
          inform += '\r\rCould not place:\r\r' + missed.join('\r');
       delete_empty_frames ();
       alert( inform );
    else
       alert( mask + ' not found.' );
    // End
    function delete_empty_frames ()
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = '\\A\\Z';
       var empties = app.activeDocument.findGrep (true);
       for (var i = 0; i < empties.length; i++)
          empties[i].parentTextFrames[0].remove()
    function initprogressbar( stop, title)
       var progresswindow = new Window('palette', title);
       var progressbar = progresswindow.add( 'progressbar', undefined, 1, stop );
       progressbar.preferredSize = [200,20];
       progresswindow.show()
       return progressbar;
    Copy and paste everything between the hyphen lines (not including the hyphen lines) into a text editor and save with a .js extension and put it in your scripts folder. Should be something like:
    D:\Program Files\Adobe\InDesign CS3\Adobe InDesign CS3\Scripts\Scripts Panel
    After alphabetizing your files and putting them in their own folder, copy the path and run the script. It will make a new folder and place all your files in one continuous story. I don't know how it will work with .txt files.
    Ken Benson

  • Importing XML Text files with Indesign friendly 'Carriage Returns'

    Hi,
    I have a question wrt importing XML into Indesign.  I have my text stored in Excel (Fig A) and intend to export as an XML file where each line will represent each page.  However, my first attempt failed to treat the 'carriage returns' as I'd envisaged:
    The 'carriage returns' used within an Excel cell (ALT-ENTER) are maintained when transforming to a CSV file (Fig B).  However, when converting to an XML file, the conversion only takes place on a line by line basis and hence the XML file becomes incomplete (Fig C).
    So, it appears I need to make sure that the CSV file contains one line per entry, while also maintaining the actual carriage returns in my source spreadsheet and for Indesign to recognise them.  In order to do this, I'll need to substitute the 'carriage returns' in my excel column to be represented by a new set of characters.  My question is how can I let Indesign know to recognise this set of characters to be converted to a carriage return, when importing text.
    For example, if this set of characters was '%%%%%%', then my new csv file would look like Figure D and the XML would be produced correctly, like Figure E.  Then importing this XML file to InDesign, the carriage returns would automatically be reinstated, hopefully.
    I hope someone can help me as I am only starting out in Indesign and feel Im running before I can walk by venturing into the XML/Indesign arena too soon.
    Best Regards
    Luke

    Hi,
    Thanks for all the responses.
    With regard to XML, it could well be an issue has crept in because I am using another utility to convert my csv's to xml and maybe there are better options out there. I will take a look for other utilities and try that (Its not possible from Excel easily, even though there is an option to save as an XML file).
    Secondly, because the XML was readable by internet explorer, I assumed it had a satisfactory standard XML format which would be accepted by any program, including InDesign.  This proved true, since the XML file i generated was actually recognised by my Indesign document and populated the tags correctly, albeit without any carriage returns. 
    When I save my excel sheet as a csv, it does actually hold the carriage returns causing multiple lines per entry, hence why I need to substitute the actual carriage returns in my excel sheet to a alternative character set so that the entry remains on one line.
    Re: Double quotes on text fields.  Im sorry, I didnt realise I had commas in my sample csv example.
    I should have corrected it, but I intend on using semi-colons as my csv delimiter and don't intend on having semi-colons in my excel sheet itself, so I possibly won't need any double-quotes.
    So, it looks like this is what I need to do ;
    i)   Add a column in Excel which substitutes all the carriage returns with a line break identifier (^n).
    ii)  Convert Excel file to a semi-colon csv holding this new column,
    iii) Convert csv file to XML using a good CSV->XML utility,
    iv)  Add the respective XML tags to my INDD document,
    v)   Add a GREP rule which does a find/replace on all instances of ^n and replace with a line break,
    vi)  Import the XML file,
    vii) Apply the find/replace GREP rule on the whole document. Carriage returns on my text fields should be consistent with my original excel sheet.
    Thanks for all your help fellas.  Will report on how I get on once Im done.
    Best Regards
    L

  • How to import and make the content of the original PDF document editable and preserves the pdf appearance and retains existing fields and formatting in LiveCycle

    Can someone tell me how I can see my content (artwork and text) after I import  it into LiveCycle Designer ES4?  I like to import and make the content of the original PDF document editable; preserves the pdf appearance and retains existing fields and formatting, then allow me to do the modifications and save it back into the original PDF document with changes. I have tried everything but still cannot see my content(artwork and Text) of my original PDF after importing it into LiveCycle. All I see are is a blank page with the formatting and layout of where my artwork and text should be. I like to see everything if possible so after I make my change I will know how it will look when I save it back into the PDF and open it in Acrobat Reader.

    Can someone tell me how I can see my content (artwork and text) after I import  it into LiveCycle Designer ES4?  I like to import and make the content of the original PDF document editable; preserves the pdf appearance and retains existing fields and formatting, then allow me to do the modifications and save it back into the original PDF document with changes. I have tried everything but still cannot see my content(artwork and Text) of my original PDF after importing it into LiveCycle. All I see are is a blank page with the formatting and layout of where my artwork and text should be. I like to see everything if possible so after I make my change I will know how it will look when I save it back into the PDF and open it in Acrobat Reader.

  • I downloaded the new iOS 6 for my iphone 4.  I have 2 iphones on my account and after the "upgrade" text messages go to both phones.  When I send a text to my wife I recieve the same text and vise versa.  How can I fix this?

    I downloaded the new iOS 6 for my iphone 4.  I have 2 iphones on my account and after the "upgrade" text messages go to both phones.  When I send a text to my wife I recieve the same text and vise versa.  How can I fix this?

    "Sounds like you guys are using the same apple id for imessage.   You will need to create a separate id for you wife.  OR go to settings - message - receive&send and make sure your phone number is the default for both you and yoru wife.

  • How to flow the xml in a document?

    pls,anyone guide me,how to flow the xml in a document?
    thanks,
    screen410099

    Hi computerflowers,
    You can set the document language in Acrobat: File > Properties > Advanced tab > Language drop down box under Reading Options. This informs screen readers (for example) what language the document is written in.
    I am not sure that is what you are looking for though. If I am steering you wrong please follow up.
    a 'C' student

  • Import and export the database table

    I would like to know what is the syntax of using imp.exe and exp.exe to import and export the database table?
    Could anyone teach me what is the syntax and how could do the export and import in the Forms?
    Thanks a loT~

    try: imp help=yes
    Or read the documentation online on OTN.

  • I recently tried to import 2 CDs but on one, only the first 4 songs imported and on the second, only the first 6 imported.  The CDs work fine in a CD player.  Any suggestions?

    I recently tried to import 2 CDs but on one, only the first 4 songs imported and on the other, only the first 6 songs imported.  The CDs work fine in a CD player.  Any suggestions?

    Rip the CDs with another program on your computer, and add the resulting MP3s to your iTunes library.  (If you use Windows Media Player for this purpose, make sure the Rip Setting is on MP3, or else it will default to a useless format known as WMA.)

  • Search file for text and delete the found text.  How?

    I need to know how to search a file for text and delete the found text. I think grep will let you do this but not sure of the syntax.

    Hi Dmcrory,
       In addition to what Camelot and nobody loopback point out, one must also consider the fact that UNIX text tools are largely line based. You also fail to tell us for what kind of text you are searching. If you are looking for multiple words, there's a very good chance of finding the expression wrapped onto different lines. With hyphenation, even single words can wrap to multiple lines. Tools that search line-by-line will miss these unless you use multiline techniques.
       Multiline substitutions require that you write "read-ahead" code for the command line tool that you're using and that you take that into account in the substitution. Given how you want the results to be printed out, you may also want to preserve any newlines found in the match, which is even more difficult. That could bring up the subject of line endings but that's a completely different topic.
       I apologize if this sounds discouraging. Multiline searches aren't needed that often and in most of those cases, exceptions can be dealt with by hand. I just didn't want you to get surprised by it. To give you an idea of how easy basic substitution is, have a look at Tom Christiansen's Cultured Perl: One-liners 102 and One-liners 101. Both have some "in-place" substitution examples.
    Gary
    ~~~~
       MIT:
          The Georgia Tech of the North

  • We are using iPhoto '09 trying to import photos from  a memory card.  We stopped the import and ejected the card over 20 hours ago, but iPhoto says its still importing.  Any idea how long the import should run if there were 5000 photos on the card?

    We are using iPhoto '09 trying to import photos from  a memory card.  We stopped the import and ejected the card over 20 hours ago, but iPhoto says its still importing.  Any idea how long the import should run if there were 5000 photos on the card?

    Don't know how long it would take to import that many photos but if you stopped import and ejected the card ther is something else wrong here.
    I would Force Quit iPhoto. Then Restart your mac. Then restart iphoto to see if any or all of your photos were imported. If they ae you're good to go. If they were not imported I would try importing fewer photos at a time and see what happens.

  • How to import and export the screen parameters

    hi all
    how to import and export the parameters of the screen
    i need to export all the parameters and then import it
    and also how to export and import a variable to the memory
    thanks and regards
    naval bhatt

    Hi,
    Check this example for exporting and importing to memory..
    DATA: V_VALUE(2) VALUE '2'.
    EXPORT V_VALUE = V_VALUE TO MEMORY ID 'ZTEST'.
    IMPORT V_VALUE = V_VALUE FROM MEMORY ID 'ZTEST'.
    Thanks,
    Naren

  • In Textedit, how do I copy a hyperlink url, but only copy the link location and not the link text?

    Suppose I have a list of hyperlinked internet URL's. I want to extract their Internet addresses -- the link locations --  which are essentially hidden in the link text. Is there any way to select and copy the list of hyperlinks, but only copy the link locations, and not the link text?
    For example, with the links:
    The White House
    Google
    One of my previous posts
    What I really want to copy are: "http://www.whitehouse.gov/", "http://www.google.com/", and "https://discussions.apple.com/thread/2737556".

    I figured out how to do it. First, copy the hyperlinks onto a blank RTF document in TextEdit and save the file.
    Second, open the file from within TextEdit, and make sure that the box "Ignore rich text commands" is checked in the open file dialog box. In the open document, the hyperlinks from my example in my first post will look like this:
    {\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf360
    {\fonttbl\f0\froman\fcharset0 Times-Roman;}
    {\colortbl;\red255\green255\blue255;\red0\green7\blue232;}
    {\info
    {\author Garald P. Weller}
    {\*\copyright Garald P. Weller}}\margl1440\margr1440\vieww20000\viewh14400\viewkind0
    \deftab720
    \pard\pardeftab720\sa240\ql\qnatural
    \f0\fs24 \cf0 \
    \pard\pardeftab720\sa240\ql\qnatural
    {\field{\*\fldinst{HYPERLINK "http://www.whitehouse.gov/"}}{\fldrslt \cf2 \ul \ulc2 The White House}}\
    \pard\pardeftab720\sa240\ql\qnatural
    {\field{\*\fldinst{HYPERLINK "http://www.google.com/"}}{\fldrslt \cf2 \ul \ulc2 Google}}\
    \pard\pardeftab720\sa240\ql\qnatural
    {\field{\*\fldinst{HYPERLINK "https://discussions.apple.com/thread/2737556"}}{\fldrslt \cf2 \ul \ulc2 One of my previous posts}}\
    Third, use the Automator function, "Get URLs From Text," to create a service, which I called "Get URLs From Text," that receives text from any window, gets the URLs, and copies the result to the clipboard:
    Fourth, select the entire page above, and go to TextEdit > Services to activate the "Get URLs" service.
    Fifth, create a new TextEdit document, and paste the result.
    The output is exactly what I wanted, the URLs -- i.e., the link locations -- of the three web pages, without the link text.
    Another utility that will extract URLs is CopyPaste Pro, which has an innate ability to extract Internet addresses from either web pages or text pages.

  • How to remove the XML attribute value in Indesign file by javascript

    Hi all,
    How to remove the XML attribute value in Indesign file.

    Try this,
    if(elm.xmlElements[i].xmlAttributes[j].name == "aid:pstyle" || elm.xmlElements[i].xmlAttributes[j].name == "aid:cstyle")
    Vandy

  • How do I locate the longest line in an InDesign document?

    Is there a script that locates the longest line in an InDesign document?

    Hi Duke;
    The following is something quick and dirty that looks at the number of characters in a line only. This ignores what the others were saying in regards to 'physical space' which may include kerning, scaling, character widths etc, and it only looks at 1 text frame so you might have to expand on it if you want to do a whole document.
    var myLines = app.activeDocument.textFrames.item(0).lines;
    var myLongestLine = 0;
    var myLongestLineGroup = "";
    for (var i = 0; i < myLines.length; i++) {
        if (myLines[i].characters.length === myLongestLine) {
            myLongestLineGroup += "Line - " + i + "\u000D";
        else if (myLines[i].characters.length > myLongestLine) {
            myLongestLine = myLines[i].characters.length;
            myLongestLineGroup = "Line - " + i + "\u000D";
    $.write("The longest lines are: \u000D" + myLongestLineGroup + "With " + myLongestLine + " characters including white spaces and breaks.\u000D");
    If you were after the physical space of a line then another couple of steps would be required. This can be problematic thought especially if the text is not forced to a fixed word, letter and glyph scaling as these paragraph style values can dramatically change the outcome (the default paragraph style has a 80% minimum word spacing by the way so it might cause variations in the result).
    Brett

  • Indesign repeatedly crashes when I copy text from one InDesign document to another InDesign document

    Indesign CC repeatedly crashes when I copy text from one InDesign document to another InDesign document. Is it possible to solve this problem?

    Without system information and details like what text formatting, language settings, fonts used, paragraph styles even down to the spell check language nobody can even begin to guess.
    Mylenium

Maybe you are looking for