on 10-25-2010 11:23 AM
Hi experts,
I have a simple Idoc2File scenario where the resulting file contains all the xml content in a single line.
Is there a way to get it in a nice intended format? (xml beautifier functionality)
many thanks
I think you can make use of XSLT mapping in this case.
-Supriya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok, I managed to solve it with xslt mapping:
I imported the following xsl into IR and added a second msg mapping in the interface mapping:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Author: Gábor Hornyák -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<!-- copy payload -->
<xsl:copy-of select="." />
</xsl:template>
</xsl:stylesheet>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gouri,
I agreee with you that the single line xml should be ok.
The problem is that my company is using an old thirdparty software which is processing the xml file.
I dont know the software itself but it is not using a correct parser. Apparently it was designed to multiline xml files and I have no choice, I have to feed it that way.
I am looking now for xslt solution as suggested.
Does anyone have already an xslt for that?
thanks
Gabor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Even though all the XML content is in single line, the file should be correct. and if just for understanding purpose u need to see, then why dont you try opening the file in Internet Explorer?
-Gouri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This can be achieved by using XSLT mapping
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.