cancel
Showing results for 
Search instead for 
Did you mean: 

XML - line break after each closing tag

Former Member
0 Kudos

Hallo all,

we are sending orders as XML-files over XI to our suppliers. All data's in this file are in one line. Some suppliers can´t use this xml-files, because after e.g. 1000 characters, their systems automatically sets a line break. So, the xml file is corrupted.

In our old system (SAP Business Connector) it was possible to set an so called "Pretty print". This means, that after each closing tag is a line break.

Is it also possible in XI (3.0 SP 19)?

Thanks in advance.

Regards,

Martin Huber

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Martin!

I think if you are using XSLT for Transformation, you can try it with the "indent=yes" Attribute in your outpuz tag of the stylesheet

(<xsl:output indent="yes"/>)

Normally it depends on the XSLT processor you use, how it will handle that option, but i think SAP's one handles this quite well.

Another option is to use a own stylesheet for that like the examples you can find here:

http://www.printk.net/~bds/indent.html

Anyway it seems like your suppliers are not really "XML compliant" if they cut a line after 1000 characters :=)

Regards

Sebastian

Message was edited by:

Sebastian Simon

Answers (0)