Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Re: Adding carriage return or Line Feed at the end of XML File

$
0
0

Hi Gurus

 

Can you please let me know the easiest way to ADD Carriage return or line feed at the end of XML file. Please, review example below in red.

 

I did come across this article:

http://wiki.scn.sap.com/wiki/display/XI/How+to+append+Carriage+Return+in+the+end+of+each+tag+of+xml+file

 

However, does this UDF have to added to each field or the root node was unclear to me.

 

Interface Pattern:

ECC (ABAP Proxy) -> PI (Maps to XSD) -> .xml File placed on FTP server.

 

Please, let me know the best possible way to implement this.

 

Also, is there anything which can be done on the Proxy side in ECC itself.

 

Thank you so much,

Ritu

 

Example:

 

  • Current Output file:

<?xml version="1.0" encoding="ISO-8859-1" ?><note><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>

 

  • Output we want:


<?xml version="1.0" encoding="ISO-8859-1" ?>

<note>

<to>Tove</to>

<from>

Jani</from>

<heading>

Reminder</heading>

<body>

Don't forget me this weekend!</body>
</note>



Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>