Importing of XML in Indesign text friendly "carriage returns.

Hello
I have a question regarding the import of XML in Indesign.  I have my text stored in Excel (Fig A) and intend to export to an XML file, where each line will represent each page.  However, my first attempt failed process "cart returns" I had considered:
"Carriage returns" used within a cell in Excel (ALT + ENTER) are preserved during the transformation to a CSV (fig. B).  However, when converting a file XML, the conversion takes place on a line-by-line, and therefore, the XML file becomes incomplete (Fig C).

So it seems, I need to make sure that the CSV file contains one line per entry, while maintaining the real transport returns in my spreadsheet source and for Indesign to recognize.  To do this, I'll need to substitute "carriage returns" in my excel column to be represented by a new set of characters.  My question is how can I let Indesign can recognize this set of characters to be converted to a carriage return, importing text.
For example, if the character set has been ' %% ', then my new csv file would look like Figure D and XML would be produced correctly, as the Figure E.  Then import this XML file into InDesign, return transport would be automatically restored, if all goes well.

I hope someone can help me because I am only starting in Indesign and feel Im running until I can walk by embarking on the XML/Indesign arena too early.
Best regards
Luke
XML_ReturnIssue.JPG

No, I don't think.

The fact is that ^ is a special character to find/replace.

so you should either avoid its use in search strings to avoid confusion.

or if you agree the confusion, you must use ^ ^ n to search for

(instead of ^ n).

Tags: InDesign

Similar Questions

  • Exported text and carriage return

    Hello

    After you export a history selected with a JavaScript in an external text file, there is always a carriage return too the end of the file exported.

    How can I get rid of this CR?

    Thank you!

    I * think * "e" mode is messing things here, i.e., you * are * changing the string, but rewriting it replaces the original text less transport returns to the end, and because you stop to write here, the original file data remains. Don't know if it's like 'e' is supposed to work, but then again, remove from the equation makes things work.

    (It actually also needed a ' file.seek (0) ' at work.)

    It is a slightly better way: open for read only, read, close; Remove carriage returns (line feeds as well, and sometimes I work on Windows here); open for writing and recording.

    For safety, I replaced the blind slaughter of the 'last character' with one; any number of returns at the end is deleted, or none if there is none in a first time.

    function delCR(file)
    {
        var myFile = file.open("r") ;
        var myCont = file.read();
        file.close();
        var myShortCont = myCont;
        while (myShortCont.substr(myShortCont.length-1) == '\r' || myShortCont.substr(myShortCont.length-1) == '\n')
         myShortCont = myShortCont.substr(0, myShortCont.length - 1);
        myFile = file.open("w") ;
        file.write(myShortCont);
        file.close();
    }
    
  • XML with Indesign!

    I'm trying to set up an automatic import of XML in Indesign. Here is a list of long products price. But so far, I try with a very short excerpt to see the result, and I do not get the desired result.

    I would like to know what to do in Indesign, in my case, in order to place the data correctly, or if you see my XML structure is not the ideal XML for Indesign document (it has attributes in addition to the tags), you could help me optimize it.

    Here are two screenshots that I made that illustrate my case:

    http://img20.imageshack.us/img20/2348/screenhunter02may230748.jpg

    http://img20.imageshack.us/img20/4848/screenhunter01may230742.jpg

    Notice that the three lowest tags (product, our_price, retail_price) light up on the same line, and I separated them with tabs.

    Any help would be appreciated kindly.

    If an element is repeated in the XML, where repeated items simply reproduce at the same level in the structure, InDesign will be 'clone' its equivalent, in the relevant part of its structure. So as long as the number of repetition of elements in the XML file is "arbitrary" (rather than the level of these elements in the structure), InDesign will follow, without any additional direction. This will become clearer to you more you practice import XML.

    That's the best I can do - good luck with it - Jeremy

  • Different handling - FM11 to FM2015 carriage return

    Hello

    There is a change in FM11 to FM2015 with import XML on the carriage returns. I was wondering if someone could explain it. I don't know if it is related to the other FM2015 spaces talks to date.

    Here is my XML file with zero whitespace (carriage returns), open with default application and no validation:

    <?xml version="1.0" encoding="UTF-8"?><test>
    <p>TEST</p>
    <p>TEST</p><p>TEST</p>
    </test>
    

    In FM11, it opens as I expect:

    In FM2015, I get a paragraph with a unique space where the carriage return is:

    This will not occur when I use a structure with normal posting app. Can someone explain what has changed?

    Thank you

    Russ

    Russ,

    I opened your test file in 2015 FM with the default setting (enabled) for RemoveExtraWhiteSpacesOnXMLImport, and with it set to Off. Behavior that I got was slightly different that you mentioned, but I think it's okay.

    When enabled, the document window displays 3 FGP. the Structure view shows a with 3

    s.

    When the option is disabled, the document window not display 4 FGP you reported, but 6. Three of them contain a

    element with the text "TEST"; the others are ranges of text in the element, each containing a single space. All these beaches text correspond to the line breaks in the input document: after the start of tag, after the end tag for the first

    and after the end of the last tag

    .

    The XML recommendation requires that all white space is significant. As a result, FM is correct not get rid. Convert the spaces line breaks is consistent with the treatment of FM of line breaks in a paragraph.

    When you open the same file using a DTD which does not allow for text ranges between

    elements, FM does not create the text ranges.

    While surprising at first, I think that the behavior is correct. So I don't mind test in FM 11 or 12 FM.

    The problem is that if you want a white space after xrefs treated properly, you must disable the option and if you want to avoid breaks come as data characters, you should enable the option of line. The solutions are:

    (1) use a DTD

    (2) to preprocess the entry to remove XML format line breaks

    (3) to preprocess the entry to change a space after an xref to a character reference

    (4) Hope Adobe fixes the bug soon

    -Lynne

  • Newlines when importing XML in Indesign

    I import XML files in an Indesign template. The content comes from an Access database via a Word macro that inserts the XML tags.

    Everything works well except line breaks (soft carriage returns). I tried vbLf and & #10;  but they both give a paragraph break, while < br / > does nothing. I could use a separate paragraph tag in Indesign without space before and after, but it's a pain for other reasons. Another way?

    Try & #x2028. This is defined in Unicode as 'Separator line.' reference

    It is a pity that InDesign offers us an easy way to determine these things. When I need to understand something like that, my first attempt to export InDesign isto and examine the result. But InDesign exports the forced line break as a UTF-8 character with a binary value of three bytes of E280A8 (rather than an entity reference). I'm still not quite clear how to get between E280A8 and 0 x 2028, but it should work...

  • How to import symbols (α, β, γ, δ, etc.) of a file xml for indesign

    Hello world...

    I have an xml file that contains symbols such as α, β, γ, δ, etc..

    I want to import this xml file with symbols in the Indesign document,

    symbols should appear under the name appearing in the xml file, they appear as empty space.

    Is it possible, if possible then please tell me...

    Thank you very much in advance...

    I have a solution to display mathematical symbols in the indesign document.

    By setting the "Minion Pro Regular" Style so that the symbols...

    Thanks for looking at my Question...

  • Import XML in InDesign Table

    I'm creating a template file in InDesign for a program of the event which is formatted in tables in InDesign.  The XML data is not in a table structure.  Is there anyway that I can import the XML data into a table in InDesign?

    In the program given there are several sessions per day; so, ideally, I would like to create a table for the 1st session and then import the xml file and have the data flow in this same format for the other days of sessions in the program, each session with the same tags.  A table would be a single session.

    Is this possible?

    Thank you - Ashley

    You're welcome, Ashley.

    You can opt for XML files to add. They will be placed in the order that they are attached. The good news is that if you choose to bind all XML files, any modification of these individual XML files, once updated in ID, will have reflected changes only to this XML file. In other words, ID knows where each XML file is in the file of ID. The links Panel will show all XML files that have been changed. As soon as it has changed the file is updated, then we still have to apply the table style that he will return to a flat table, despite the style

    For example, if... This XML file has the "incorrect" date

    ID shows the XML file being edited. Once updated, only the changes to the XML file are recorded in the ID file:

    Note that I didn't notice that this thread has been updated. I got to go get in the list of threads. If it appears I'm missing, feel free to PM me.

    Take care, Mike

  • How to import table calluses in InDesign by InDesign Script

    I the CALs table in my indesign document, but the problem is that data in the table list in the format of data, not showing is not tabular...

    My requirement is to show this data in table format...

    Can someone help me please...

    Thank you...



        
        
        

             ME the amount of adult psittacines credits in various environments and activity levels
        

            
            
            

                
                     Management scenario
                     ME (kcal/day) need
                

            
            
                
                     Indoor cage
                     154,6 × (BW in kilograms)0.73
                

                
                     Indoor Aviary
                     176.6 × (BW in kilograms)0.73
                

                
                     Outdoor aviary in hot environment
                     203.9 × (BW in kilograms)0.73
                

                
                     Outdoor aviary in cold environment
                     226,1 × (BW in kilograms)0.73
                

                
                     Free ranging
                     229.2 × (BW in kilograms)0.73
                

            
        

    ====================================

    My XML file contains data above, this is the code to import the XML file into InDesign Document...

    It does not work correctly...

    indesign #target

    var doc = app.activeDocument;

    var myFile is File.openDialog ("file select XML");.

    doc.importXML (myFile);

  • How to import the XML file into an oracle table using a BPEL process

    Hi friends

    How can I import XML file in the db oracle table using a BPEL process

    (1) I have generated an XML file in my local system with a field
    (2) I created a temporary table in my oracledb with the same field in the XML file
    (3) that I want to import these XML files which is the local host to my db oracle using a BPEL process
    (4) for that what steps should I me fallow please suggest me if there is no document for this?

    Thanks in advance
    AT

    Hi to

    Here you go...

    http://blogs.Oracle.com/ajaysharma/2011/03/using_file_adapter_database_adapter_and_mediator_component_in_soa_11g.html

    I hope that helps!

    Thank you
    AJ

  • XML to the respect of the average carriage returns

    Hello

    I started a project where I bind a text box to a string, which included \n for carriage returns. This worked OK.

    However, I now use a http service call to access an XML file and fill the text boxes. Some text boxes are long and I always want to have carriage returns / new lines.

    Because the data is now coming via XML, the "\n" is not respected.

    I'm not sure if I should use the new text layout framework for formatting incoming data for paragraphs OR use htmlText of the old mx: component OR another approach. In total there are six areas to separate the text that will display the data in the form of paragraphs, I'm looking for so the most efficient / cleaner to do this.

    I use Flash Builder 4.

    Thanks in advance,

    Niall

    In your xml, try using:

    < br >

    .. and assign the text to the htmlText property.

  • (AS) Select the text of the paragraph without bringing out the carriage return

    (AS) Select the text of the paragraph without bringing out the carriage return character.

    I need help to select a paragraph in a story.
    The selection does not contain a 'return' (ASCII number 13 ")

    My current sample is as follows:
    -example assumes that the insertion point is already placed in a specific paragraph.

    Tell application "Adobe InDesign CS3"
    activate
    theDoc Set to the active document
    say theDoc
    Select the paragraph 1 of the selection
    end tell--theDoc
    end tell--app

    Sounds simple... The example above to select my paragraph selected.

    but he also chose the carriage return also. How would I go to do this?

    Any advice would be helpful!

    Thank you!

    Try:

    Select text in character-2 of paragraph 1 of the selection of character 1

  • Using XML in plain text in TextFilter

    I have an application with an XML tag:
    < mx:XML id = "textXML1" >
    Goodbye < root > < c1 > < / c1 > < / root >
    < / mx:XML >

    I then a string variable I set equal to this XML:

    var t:String = textXML1;

    I then put in place a TextFlow by the following line of code:

    textFlow = TextFilter.importToFlow (t, TextFilter.PLAIN_TEXT_FORMAT);

    However, I then do any of the text value in the TextFlow:

    trace ("text of textFlow:" + TextUtil.extractText (textFlow));

    The discharge that results is:

    text from textFlow: < root >

    Goodby < c1 >
    < c1 > bye


    Any ideas?

    I am not able to reproduce the problems of importing XML in plain text. The problem must be in TextUtil.extractText (). I recommend that you pass to the Flex team through their database of bugs.

  • 8.1 for Windows and Firefox 36.0.1 the text in the forms box has no carriage return. Earlier versions, as forms of work. Is there any solution for this?

    Before this version of Firefox 36.0.1, the < textarea > HTML worked in my forms. View Cart returns. In the version of 36.0.1 that they no longer work correctly. However, when I enter a carriage return, it displays a space instead of a line break. I went to test basic textarea
    < textarea > name = cols 'comments' = 20 rows = 10 < / textarea >
    to make sure that I was not introducing anything with other languages.
    I use Windows Pro 8.1. I drove back to 35.0 Firefox and everything works fine. I installed 36.0.1 and it stops working.
    I have access to another laptop also running the same version of windows and Firefox and it seems to be done as well strange things. I'm suspicious because I started to notice this immediately after a windows update last night. The laptop also known issues that he immediately after a windows update last night.
    I still have another computer running a different version of windows and Firefox and it works very well. It seems that the issue is where there are windows Pro 8.1 and Firefox 36.0.1.
    Guys do you have an idea what is happening here?
    Thank you
    JMRAUPE57

    The current version supports the white-space for a text box property and it is possible that the Web site uses spaces: pre instead of spaces: pre wrap.
    The former will prevent Firefox of text wrapping.

    You can check that out in the Inspector via the context menu.

    See:

    The white-space property is currently working on HTML < textarea > (bug 82711) elements.

    See also:

  • import of rtf in indesign paragraph styles have a strange symbol next to them

    import of rtf in indesign paragraph styles have a strange symbol next to them. What is the average of symbol?

    Not the styles are very well. It's just an indicator of the user interface. Styles will act normally and save with the model.

  • I get the update failure when I try and import plug-ins for Indesign for new DPS, even though I have updated the Application Manager. What can I try next?

    I get the update failure when I try and import plug-ins for Indesign for new DPS, even though I have updated the Application Manager. What can I try next?

    And moved to the DPS forum.

    The classic DPS plugins are not supported in CC2015. You go back to CC2014 for that. Only the new digital publishing Solution will be supported in CC2015.

Maybe you are looking for