on 03-21-2007 12:47 PM
Hi all,
Can anybody help me to handle this problem? For exemple I need to receive a XML like that:
<?xml version="1.0" encoding="UTF-8" ?>
<YMMIANLA>
<IDOC BEGIN="1">
<YPIT_DESTINO SEGMENT="TEST">
<GSBER>TEST</GSBER>
<URL>http://10.10.10.10:8080/</URL>
<TABIX>TEST</TABIX>
</YPIT_DESTINO>
</IDOC>
</YMMIANLA>
But I'm receiving like that:
<?xml version="1.0" encoding="UTF-8" ?>
<YMMIANLA><IDOC BEGIN="1"><YPIT_DESTINO SEGMENT="TEST"><GSBER>TEST</GSBER><URL>http://10.160.16.198:5556/</URL><TABIX>TEST</TABIX></YPIT_DESTINO></IDOC></YMMIANLA>
My legacy system is very poor and just process XML with "correct" identation.My SAP XI is istalled on IBM AIX.
Thanks in advance,
Daniel Torres
What is the XI adapter you are using for sending the XML data to IBM system?
You can check the content conversation properties to insert indentation for your XML file
Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use an XSLT like this:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:copy-of select="*" />
</xsl:template>
</xsl:stylesheet>
Put the XSLT as second mapping step.
Regards
Stefan
How does your backend system pick up the message? If it is from a file/ftp port, you may also
copy the file into a temporary directory or give it a temporary name
call a shell script which puts a newline after each closing bracket (sed does that quite well f.ex.) and afterwards moves the file to its intended destination
Cheers!
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The graphical mapping tool and the content conversions of the file adapter do not support identation.
You have to use XSLT or Java mapping.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.