Should Import Causes Spaces Between Elements?

Hello.  I have noticed behavior in XPP which I wanted confirmation of whether or not it is normal.

It involves importing XML data into an XPP DIV.

Let me start with some sample data:

<wrapper>

     <tag1>TEXTtag1</tag1>

     <tag2>TEXTtag2</tag2>

</wrapper>

After importing this into XPP, I see a blank space between end element </tag1> and start element <tag2>.

In other words, if I look in line editor, I see this:

<wrapper><tag1>TEXTtag1</tag1> <tag2>TEXTtag2</tag2></wrapper>

Notice the space between </tag1> and <tag2>?  This space is showing up in our DIV and leading to some unacceptable output in the PDF.

If I remove the line break between </tag1> and <tag2> and run import, the space goes away.

This only seems to happen when an element with text is followed by another element with text and there is a line break in between.  If no text is contained in either or both elements, no space is produced after import.

Is this expected behavior from XPP – i.e. adding a space to replace line breaks between elements with text?

Just wondering.

I am running XPP 9.3.1.0 on Linux.

Thank you.

Parents Reply Children
No Data