cancel
Showing results for 
Search instead for 
Did you mean: 

JMS content conversion adapter module

Former Member
0 Kudos

Hi All,

In JMS Content conversion module Xml2Plain how do u put two new lines 'nl'.

I am using localejbs/AF_Modules/MessageTransformBean in adapter module.

If I put xml.record.fieldSeparator in parameter name and in parameter value if I put one 'nl' it gives me one new line. Now I require two new lines in my output text so I put 'nl' 'nl' in parameter value but it takes only one new line.

e.g

Vivek

mumbai

India

John

Delhi

India

Now I want the output as:

Vivek

mumbai

India

John

Delhi

India

Thanks in advance.

ravijeet

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Ravijeet,

Not sure whether you can accomplish this with the field separator, but you might be able to solve this by adapting your mapping so that it creates empty records in the XML?

Kind regards,

Koen

Answers (2)

Answers (2)

Shabarish_Nair
Active Contributor
0 Kudos

try,

xml.record.fieldSeparator '0x0D''0x0D'

or

xml.record.fieldSeparator '0x0A''0x0A'

prateek
Active Contributor
0 Kudos

Have you trie 'nlnl'?

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek,

No, then it is throwing an error.

Regards

Ravijeet

Former Member
0 Kudos

can you use the parameter twice?

like:

xml.record.fieldSeparator 'nl'

xml.record.fieldSeparator 'nl'