4 Replies Latest reply: Apr 18, 2013 5:04 AM by locavore RSS

    Importing XML

    community help Community Member

      This question was posted in response to the following article: http://help.adobe.com/en_US/indesign/cs/using/WS96346460-C5B6-42c7-88F5-086287793984a.html

        • 1. Re:  Importing XML
          Steph87

          Hi There,

           

          I have multiples of XML data coming through for the same (very large) document.

          This XML has been created from an online form database.

           

          And as I am on a tight deadline I really need to import the XML as they are submitted but want to use the "Merge Content" option.

          The only way I can figure out how to make it work is to have a template indesign file and as the data comes in, import XML and merge content. Then copy these pages and paste into the large document?

           

          The reason why I can't append content then drag and drop the content into a box is because I can't figure out how to perfectly format the table I need using XML, but if I merge content it uses the previously setup table I have created in indesign.

           

          I am hoping someone has a better idea?

           

          Thanks in advance!!

           

           

          • 2. Re:  Importing XML
            locavore Community Member

            It isn't clear from your description why you don't update the whole XML file and reimport, or have it linked in InDesign and update it. What are your criteria for the changes?

            Look at the documentation for adding the aid: namespace to XML (using XSLT during import) to see if this might be useful.

            • 3. Re:  Importing XML
              contact@textree.co.kr

              Hi there

               

              I succeded importing xml in Indesign, but I still have table problem.

              Images in table is disappeared. I did not know the reason.

              I guess Indesign table model made trouble.

               

              Thanks in advance.

              • 4. Re:  Importing XML
                locavore Community Member

                I would suggest reverse-engineering the situation. Make a table. In the table, make a paragraph and tag it with an XML tag (you can make one up for this test). Then place an image into a table cell. Select it and then tag as an image by using Autotag feature. http://help.adobe.com/en_US/indesign/cs/using/WSa285fff53dea4f8617383751001ea8cb3f-6cf6a.h tml#WSa285fff53dea4f8617383751001ea8cb3f-6cf5a

                 

                Export the entire table as XML and view the result to see how InDesign writes the XML. Image file names in href value must start with file://

                 

                You can make a different tag map for images by checking the Tagging Preset Options and change the default Image tag to the tag name that you use for your images in XML (img, image, pic or whatever).I don't think you can change what attribute InDesign uses for image resource path, I think it must always be  @href containing "file" followed by the path - see @href explanation. http://help.adobe.com/en_US/indesign/cs/using/WSa285fff53dea4f8617383751001ea8cb3f-6ce7a.h tml.