Skip to main content
Known Participant
June 22, 2015
Question

Adding prefix on line break when importing XML

  • June 22, 2015
  • 0 replies
  • 337 views

Hi all,

I'm trying to figure out if there's a way to add a prefix every time there's a line break within a certain element. I'm importing XML into FM with a structure that looks something like this:

<note>

     <elem1>Some text here.

     <elem2>Some text here;

that contains a line break.

     <elem3>More text here.

</note>

I have specified in the read/write rules that each sub-element should preserve line breaks. I have also specified in the EDD that each sub-element should have the prefix "-".

So when importing into FM, the text currently looks like this:

Notes:

- Some text here.

- Some text here;

that contains a line break.

- More text here.

However, what I'd like it to look like is this...

Notes:

- Some text here.

- Some text here;

- that contains a line break.

- More text here.

Does anyone know if this is possible to accomplish within FM? Maybe by using the read/write rules? I'm pretty new to FM so any help is greatly appreciated. Thanks!

This topic has been closed for replies.