4 Replies Latest reply on Nov 11, 2013 5:12 PM by MoonLizard

    Why does XML cloning repeats tag structure upon importing, but not the text?

    MoonLizard

      Running CS6 on a PC (Windows 7)

       

      I have an XML file that looks like the following:

       

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

      <Root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                     <Row>

                                    <Header_B>B3B3</Header_B>

                                    <Header_C>C3C3</Header_C>

                                    <Header_D>D3D3</Header_D>

                     </Row>

                     <Row>

                                    <Header_B>B4B4</Header_B>

                                    <Header_C>C4C4</Header_C>

                                    <Header_D>D4D4</Header_D>

                     </Row>

      </Root>

       

      I created a text file inside InDesign that contains the folowing:

      Row B  contents

      Row C  contents

      Row D  contents

       

      I then assigned the Header_B tag to the word "contents" in the first row, Header_C to "contents' in the second row, and Header_D to "contents" in the third rows. The text frame itself is assigned the tag Row.

       

      Therefore, tthe terms Row B, Row C, and Row D are static text.

       

      The structure shown in the Structure Panel looks normal, with Root containing Row containing Header_A, Header_B, and Header_C.

       

      The fun begins when I try to import the XML file.  I use the Merge option and select "Clone repeating text elements," "Only import elements that match existing structure," and "Do not import contents of whitespace-only elements." 

       

      Once imported, the Structure panel shows the Root tag containing two Row tags, with each Row tag containing Header_A, Header_B, and Header_C. That is what I expect.

       

      However, I was expecting the content in the text frame to repeat, producing

       

      Row B  B3B3

      Row C  C3C3

      Row D  D3D3

       

      Row B  B4B4

      Row C  C4C4

      Row D  D4D4

       

      It does not. All i get is

       

      Row B  B3B3

      Row C  C3C3

      Row D  D3D3

       

      Note that if I drag the Row tag from the Structure Panel onto the text frame, the text switches to

       

      Row B  B4B4

      Row C  C4C4

      Row D  D4D4

       

      I must be mistaken in my understanding of what the Clone feature does. Can anyone help me figure out what I am doing wrong? In the past, Mike W has been very helpful and I am hoping he or someone else in here can get me through this.