on 05-02-2008 12:32 PM
Hi All,
I have an JMS to File interface that outputs an XML file.
The XML is being written to the file in one long line of text like below
<?xml version="1.0" encoding="UTF-8"?>
<field1>test</field1><field2>test</field2><field3>test</field3><field4>test</field4><field5>test</field5><field6>test</field6><field7>test</field7><field8>test</field8><field9>test</field9>
How can I get it to write out like this..
<?xml version="1.0" encoding="UTF-8"?>
<field1>test</field1>
<field2>test</field2>
<field3>test</field3>
<field4>test</field4>
<field5>test</field5>
<field6>test</field6>
<field7>test</field7>
<field8>test</field8>
<field9>test</field9>
I can't see any option in the File Communication Channel to do this???
Hello Buddy,
Just Execute the transaction CG3Y/CG3Z and give the destination Folder on your local machine and you give the source folder and the save it with extention .xml......just indent the file ...thats it....
**************Reward points,if you found useful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Hello Buddy,
>
>
>
> Just Execute the transaction CG3Y/CG3Z and give the destination Folder on your local machine and you give the source folder and the save it with extention .xml......just indent the file ...thats it....
>
>
> **************Reward points,if you found useful
These transactions don't exist according
Where you r getting this long one line file??
what is the output format of the file?
Check it in internet explorer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry the XML is just an example.
The interface outputs the XML file to a folder on a UNIX server. A seperate application picks up this file and moves it to a Windows server. This transfer is failing because the application cannot move a file if it has a Record length of more than '32K' bytes. therefore, i can't have the XML all in one line.
Damien,
Depending on how your create your target document, you could use :
XSLT : <xsl:output method="xml" indent="yes"/> it will automatically creates indentation according to XML structure, instead of flat structure,
JAVA: you can explicitly set the EOL pattern wherever you want (but this will require some coding). The XML framework you use may also offer native tool(s) to handle this.
Chris
I think both the files are same. Open it in explorer and u can see the results. I noticed that there are no root node element in ur file.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.