cancel
Showing results for 
Search instead for 
Did you mean: 

whitespace getting suppressed in the xml field

Former Member
0 Kudos

Hi There,

  Im aware that during runtime the xml can't parse the space in the xml paylod, but can anyone suggest the best option to handle suppressed white space in the inbound xml.

currently xml is from MQ (JMS) -- > PI -- ECC, where in a segmnet has the field as below

<FIELD2>0299                   N         23487   02  00N                                    0.00 </FIELD2>

but I need to maintain the same format till it reaches ECC , as there is a validationg based on this format.

can some one advice on this?

BR ,

Sethu.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

You can keep Details section in DataType as :

whiteSpace="preserve"

Former Member
0 Kudos

Hi,

But Im using the std IDOC structure in my mapping via External def.

can we use xslt mapping for this ? any other advice pls

Regards,

Sethu.

Former Member
former_member201264
Active Contributor
0 Kudos

Hi,

You pleaes try to use EXist node function and if then function.

When True send the same field and when false send constant space.

Regards,

Sreeni.