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...

Tags: InDesign

Similar Questions

  • &lt; a &gt; tag is creating error importing XML in InDesign CS5.5

    Hi all

    I do InDesign CS2 to InDesign CS5.5 update.

    I have the indt file. It was designed by using the CS2 and now converted this file using InDesign CS5.5 CS5.5 indt.

    But I am facing a problem while making the export as pdf in version CS5.5.

    I'm following steps below:

    (1) indt open the file.

    2) menu file-> import XML... [This XML file contains < a href = "Web site link" > html tag]

    (3) [no change-defalut option selected] XML import options

    (4) ideally, it should merge XML data with the indt file but this is ask me for feedback and show me "search:" dialogue [below instant check]

    Error.IDCS5.5.JPG

    I did some research and know I get this dialog search because of the < a > tag XML. When I removed the < a > tag XML, then it gives no dialog and XML imported without any problems.

    I get this XML system and I can't manually delete the < a > tag of xml.

    However I was getting any error while making import XML in the CS2 version.

    Please can someone help with this?

    When there is "http://" in the anchor tag, it will jump to the top of this entry window manual indd/indt export to PDF and it will be failed in export by the action script.

    I contacted Adobe software and it was bug. Adobe has confirmed that they would be realease the patch for even some time later, but I have not heard anything. I got the job by removing "http://" using java.

  • Table do not create lines when importing XML

    Hello

    I loaded my XMl file tags.  I have a text box on my indesign document. I have the tag in the tag of the 'Net.  I then drew a table in the text box with 2 rows and 3 columns.  All cells in the table are marked for 'Cell '.  I then right click on the root-> element-> ReportData tag now when I import it then everything is as should be.  That is to say 2 rows with relevant information populated in all of all cells.

    I hoped to do was to create a table and specify only one line with 3 columns.  When I import the XML file, I was hoping that the aid: trows = "2" would create the extra line.  But this isn't the case.  Instead remains 1 row, but there are 3 additional columns that appear (IE 6 cells in row 1).  Someone tell me what I'm doing wrong please.

    Here is my XML

    <? XML version = "1.0" encoding = "UTF-8"? >
    "< produitLogiciels xmlns:aid ="http://ns.adobe.com/AdobeInDesign/4.0/"xmlns:aid5 ="http://ns.adobe.com/AdobeInDesign/5.0/">" "
    < net >
    < aid: table = 'table' aid: trows = "2" aid: tcols = "3" >
    < aid5:cellstyle of cells = "Red banner" aid5:paragraphstyle = "Red banner" aid: pstyle = "Red banner" aid: table = 'cell' > NET returns of funds < / cell >
    < cell aid: table = 'cell' aid: ccolwidth = "130" > < / cell >
    < cell aid: table = 'cell' aid: ccolwidth = "130" > < / cell >

    < cell aid: table = 'cell' aid: ccolwidth = "130" > 56 < / cell >
    < cell aid: table = 'cell' aid: ccolwidth = "130" > 1 < / cell >
    < cell aid: table = 'cell' aid: ccolwidth = "130" > 42 < / cell >

    < /table >
    < / net >
    < / produitLogiciels >

    I think that your xml is working as you are wanting him for me. Take a look at the attached screenshot.

    Here's what I did (in CS4, BTW):

    1. Create a new document
    2. Rename the tag root of "ProduitLogiciels".
    3. Create a new tag named "NetFundReturns".
    4. Create a unique text on the page and tag with the tag "NetFundReturns".
    5. Import XML

    How is this different from what you were doing?

  • Error when importing XML in FM8

    Hi all

    To allow my app to a wider group of users, I want to refer to a dtd via a URL rather than fixed a path on the local file system.

    I am using FrameMaker 8.

    Currently I have the following line in the xsl style sheet that is applied to XML data when importing to FrameMaker:

    "< xsl: output method ="xml"standalone =" "doctype-system="X:\mydir\mydtd.dtd "/ >

    I want to change that:

    " < xsl: output method ="xml"standalone = 'no' system, doctype = ' http://www.mysite/mydtd.DTD "/ > "

    However, it gives me the following in the FM8 error when you open the XML file:

    --------------------------------------------------

    XML Parser (the Document prologue) messages

    Analyze the error at line 2, char 92: error in processing external entity reference

    The abandoned analysis.

    --------------------------------------------------

    Any advice?

    Thank you

    John

    John,

    I see that you have the read/write rules search path specified (which seems to be of no use, because you specify a full path of the document to R/W).

    Now add entities to search path specifies the DTD file. Then, FrameMaker should be able to find it.

    I usually specify the DTD with a full path so that the path in a variable, so installation is easy.

    -Michael

  • 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

  • "Generic error" when importing XML FCP files

    When you try to import any XML from Final Cut Pro file, I get the following "Importer reporter an generic error." What this mean and does it perform a work around? Any help will be greatly appreciated.

    Thank you for sending a copy of the FCP XML, Bill. What seems to be stumbling first is that audio mixed types of channels. For example, stereo and mono. I see two workaround solutions:

    • limit audio content in the source project to clips of a channel type.
    • import the FCP XML in a Premiere Pro CS6 project, and then open the project in CS7. Note that, while CS6 managed to import the FCP XML, a dialog box warns against "possible problems during the translation," which are recorded in the minutes (which I stop not to see again, so no idea what these questions are...)

    I entered a bug report and your FCP XML in the annex. As always, no promise as to the be/when it will be addressed.

  • Import xml with attributes how to apply the pagination, property

    I have xml files in which paging is set using an attribute. The value of this attribute must be read and applied to the paragraph format in FrameMaker when importing xml files. I guess it must be educated according to the rules of reading writing. But how?

    Arnor,

    To control the format paragraph with an attribute, apply format rules in ESD rather than read/write rules. You cannot copy a value to attribute to a property value, but can test specific attribute values and set a property accordingly. For example, if you have a widow named attribute and know sure that value never exceeds 10, laboriously have a rule such as:

    1. If the context is: [widow = "1"]

    Paging properties

    Widows and orphans lines: 1

    Otherwise, if the context is [widow = '2']

    Paging properties

    Widows and orphans lines: 2

    ...

    Otherwise, if the context is [widow = "10"]

    Paging properties

    Widows and orphans lines: 10

    For other paragraph pagination properties, your ESD must also test values, for example:

    2. If the context is [Placement = 'RunIn']

    Paging properties

    Placement: Top of break-in

    By default the punctuation:

    Otherwise, if [Placement = 'Coast']

    Placement: Head to one side

    Of course, attribute names may be different from the names of properties of FrameMaker or value keywords.

    -Lynne

  • Problems importing .inx in InDesign CS3

    Hello everyone,

    I'm Luana and I'm a translator. Has been for many years one of my clients send me the InDesign CS3 files to be translated.

    I export to .inx and import them in Trados, then, after translation, I re-imported the inx file in InDesign and save them. Always successfully!

    Now, I'm facing a problem: when importing inx. in InDesign, the last two pages document is empty, but they should not (there is text in there). The text is in, I don't know because I translated it, but unfortunately I can't view in InDesign, it is hidden.

    Do you know how to view again?

    Thank you in advance!

    Kind regards

    Luana

    Check the story editor view and search a text right after the indicator of excess. It's usually something preventing a break line that is too wide for the frame, a too big for the frame table cell, or a Dungeon option that prevents the text to appear.

  • InDesign, Import XML, switching to and from possible design multi-column?

    I have a question that may or may not require a script solution. I have a data source external generation text referenced XML file that I will not flow into a book. Normally, the book is a two-column layout, but there are illustrations (and sometimes pieces of explanatory text) which should cover both columns. I've built examples of use of reflow smart text for simple and updated column in multi-column page layout. Using one of these with the active smart text reflow works beautifully.

    Ideally, I would like to a XML tag that says "start spanning two columns now", inserts a large illustration (could also be a piece of text however) and another that says "return to normal 2 columns. I did a number of experiments (all unsuccessful) I can't seem to get a working solution. I really like the XML import, but if this is not possible, I'm willing to look at other approaches.

    Has anyone had a similar problem?

    As a gross illustration...

    Lorem ipsum dolor sit amet, adipiscing elit computer.

    CRAs quis ligula EST. SED dictum erat an EST porta in

    dignissim nisl ultrices. In and convallis elit. Curabitur pretium

    < HYPOTHETICAL_SPAN > magna EU ornare, tellus faucibus total, placerat vitae arcu fringilla

    Nulla non sapien ligula. Vestibule vel mauris and pellentesque erat

    Nunc. Vestibule total ac nulla ornare EU ultricies sapien tincidunt < / HYPOTHETICAL_SPAN >

    so. In metus, id erat auctor gravida dignissim

    eget dignissim erat dictum nisl eleifend porta an EST in

    Harold

    Just to be clear, when you say:

    I have a data source external generation text referenced XML file that I will not flow into a book.

    you mean import XML, not the import of text containing the tag of InDesign, correct?

    Ideally, I would like to a XML tag that says "start spanning two columns now", inserts a large illustration (could also be a piece of text however) and another that says "return to normal 2 columns. I did a number of experiments (all unsuccessful) I can't seem to get a working solution. I really like the XML import, but if this is not possible, I'm willing to look at other approaches.

    Can't you just a tag that maps to a paragraph style that allows to span columns?

  • 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).

  • Problem with InDesign startup script does not import XML images

    I'm doing an XML import automatically from a startup script when a document is loaded. I managed to get most of the content to fill, but the images are ignored. Everything works, including images, when I do a manual 'Import XML' through the user interface or a manual script.

    Here's my manual script:

    var myDocument = app.activeDocument;
    var xmlFile = File('/c/Full/Path/To/data.xml');
    
    myDocument.importXML(xmlFile);

    But the goal is to do at startup. Here's my startup script:

    #targetengine "session"
    
    app.addEventListener('afterOpen', function(myEvent) {
       if (myEvent.target.constructor.name !== 'Document') {
       return;
       }
    
       var myDocument = myEvent.target;
       var xmlFile = File('/c/Full/Path/To/data.xml');
    
      myDocument.importXML(xmlFile);
    });

    Here is the XML tag for the image:

    <Image href="file:///C:/Full/Path/To/Image/02.png" />

    I wonder there is a problem with the 'afterOpen' event reminder, and it is the reason why it works manually using the same method, but not in the startup script.

    I solved it by avoiding the event quite listener:

    main();
    
    function main () {
    
        // create a path for a file object
        var curFile = File('/c/Path/To/file.indd);
        var xmlFile = File('/c/Path/To/data.xml');
    
        // close app if files don't exist
        if (!curFile.exists || !xmlFile.exists) {
            app.quit(SaveOptions.NO);
        }
    
        // open the file
        var curDoc = app.open(curFile);
    
        // import the xml
        curDoc.importXML(xmlFile);
    
        // create a new file object
        var pdfFile = new File(curFile.parent + '/' + curFile.name + '.pdf');
    
        // export to pdf
        curDoc.exportFile(ExportFormat.PDF_TYPE, pdfFile);
    
        // close app
        app.quit(SaveOptions.NO);
    
    }
    
  • Avoid duplicates when you import XMLs?

    There are a few versions, we have fixed the problem to get the duplicate items when you import new projects in another.  This was very helpful.

    However, I have noticed that when you import XMLs, first does not apply the same level of... discretion

    Is it possible to get XMLs for import without creating duplicate items?  I found a workaround by first import the XML file into a new project and then import this project first to my main project... but when I'm in a great documentary film which takes 3-4 minutes to open each time, it's not ideal.

    This is particularly important for people using the Pluraleyes because organize us images in first and then export to the EP, and then must bring with XMLs, and it would be great if we didn't have to do a bunch of media management manual to avoid duplicates in the project file.


    Thank you!

    R

    Hi Ryan,

    Get your feature to the appropriate string request by filling out this form: http://adobe.ly/feature_request

    Thank you

    Kevin

  • Is it possible to import xml into Adobe Muse to fill the content similar to InDesign?

    Is it possible to import xml into Adobe Muse to fill the content similar to InDesign?

    The only way I see that this would be possible through the use of JS that you can insert by using the object-> the option Insert HTML code, you can retrieve the XML to the HTML from here - http://www.w3schools.com/xml/xml_to_html.asp

    In order to check this, simply download the sample XML file from the following location - http://www.w3schools.com/xml/cd_catalog.xml and save it somewhere locally. Now to add this file to your Muse project using the file-> add files to the download option, then it appears in the active panel.

    Add the code to your page and update the path that references the file cd_catalog.xml to assets/cd_catalog.xml. Now on the preview of the page in the browser, you should see the HTML populated from the XML.

    Thank you

    Vinayak

  • CS5.5 / Win: Indesign crashes when importing an rtf file

    Hello

    My plugin crashes when importing an rtf file. Most rtf work very well, but it's not OK. If I try to import Indesign crash. Also if I try to manually place in Indesign.

    I think that something is wrong in the rtf, but I can open it in Word.

    Any ideas what to do?

    Can I perform a check in advace?

    By the way: I can't save my RTF presets in Indesign. No idea why?

    Thank you

    Hans

    Hello

    It does not work without my plugin. InDesign crashes also without it, if I placed the RTF manually.

    In the meantime, I found a sequence in my RTF which is the cause of the accident. I fixed that manually, and after that I could import the RTF. It seems that it is a problem of the RTF import filter.

    The uncorrected RTF was imported to Indesign CS3, after that it crashes (CS4, CS5, CS5.5).

    Thank you

    Kind regards

    Hans

  • Importing XML that contains more than 1 sheet

    Hi all
    I'm working on a book that will contain 100 chapters, each chapter contained in a double spread page, that's why the book will contain 200 pages.  My book is currently contained in an excel spreadsheet and my idea is to convert it to a CSV file, then to an XML file, allowing me to import in a paper previously prepared containing 100 chapters, each containing the same xml tags and accompanying character or paragraph style.
    I was so hoping that import the xml file would flow into its respective tags and have then each chapter filled accordingly.

    To test this concept, I tasted a simple worksheet with two rows of information, each representing a chapter.  The resultant csv and xml, I could import my chapter 2 InDesign document, but only one of the chapters is populated.  So I'm pretty sure I did something wrong but don't know where in the process I was wrong.

    That's what I did (ties are screenshots of my source spreadsheet, xml and indesign import chapter);
    (1) install a document with a registered master page, the master page is the chapter format.
    (2) xml tags added to the document, as well as the hierarchical structure of the element,
    (3) assigned the XML tags to its space reserved to the respective text/graphics in the master page frame, however do not tag the tags 'root' or 'topic' since these are not holders of text.
    (4) paragraph and character styles assigned to each xml tag. Then re-recorded the new page master xml-tabs.
    5) added another chapter (using my tab master xml)
    (6) saved the document.
    (7) then imported the XML file (ssheet convert csv and XML) in my document and the first chapter is filled with the correct information and no police etc., the second chapter.

    As Im new in InDesign and XML, I suspect that I've set up correctly.  Does anyone know where I am wrong, or if not, is there another way more effective to achieve (John Hawkinson has suggested that it would be more appropriate "Data fusion").
    Thanks in advance

    L

    PS. Site is not allowing me to upload images at the mo. Once able to download.

    Yes, I think you should use the fusion of data (with the CSV file) and forget XML.

    You will still need replace the newline characters, but you already know how to do this.

Maybe you are looking for

  • Downloaded Beta-8; Will not install

    I downloaded the Beta version and got some (beta)? "product code", but whenever I'm trying to install it on my Windows 7 64-bit machine, the download process again everywhere. It took 8 + hours to download it from the Microsoft website, and I just wa

  • Unable to save pictures of Pinterest to the phone?

    All of a sudden I can no longer save a picture of Pinterest to my camera. There is no or the three points that I would choose, and a menu drop-down arrow appears in order for me to choose Save on film. I have already reset my phone. Tap power and eve

  • Loop drops when connected wireless (NI 9191)

    Hello I can't understand why an a chassis OR cDAQ 9191 a connection drops when connected wireless and works perfectly when it is connected to the LAN. I wrote a small essay VI to check the accuracy of the connection. The chassis has a module of e/s 9

  • M1212nf MFP: M1212nf MFP connectable to googles OS for?

    I've been convinced to change my calculation to a BONE, Chromebook 2 of Google.  I have a M1212nf Printer MFP.  Can it be connected to the Chromebook Tablet?  I fount this printer is not ready for e-print (wireless), but what about the ethernet conne

  • PIX 501 does support proxy ARP?

    Hello I would like to know if it is possible to publish a proxy arp some public address on the external interface of a PIX 501. What is the command I should use? Thank you