‎2009 Mar 23 1:30 PM
Hello,
I use open dataset to download an xml file on a server, but when I open it with an text editor tool I get only one line, with the internet explorer I get the xml layout.
When I open an original xml file I get the layout of the xml also in the text editor tool.
what is the issue therefore?
‎2009 Mar 23 1:36 PM
I use simple transformation to generate the xml data file.
Is this wrong that I get only one line the text editor?
‎2009 Mar 23 1:43 PM
Most probably it has to do with the whole document being on one line due to lack of valid endline characters under Windows.
Anyway, if you want to view/edit a XML file, the best way is a XML viewer/editor.
‎2009 Mar 23 1:45 PM
I think this is not a windows problem, anyway when I open an original xml file in the text editor I see the xml layout, but when I open my xml file which I have created with simple transformation I get all the values in one line.
How can I solve this?
‎2009 Mar 23 1:53 PM
search the forum on Line feed , XML applicationserver page breaker and CL_ABAP_CHAR_UTILITIES=>CR_LF
‎2009 Mar 23 1:54 PM
Hi,
While uploading the each line Data to the Application server from the internal table concatenate the CL_ABAP_CHAR_UTILITIES=>CR_LF char.
LOOP AT ITAB INTo WA.
CONCATENATE WA CL_ABAP_CHAR_UTILITIES=>CR_LF char INTO String.
TRANSFER string to P_file.
ENDLOOP.
‎2009 Mar 23 1:56 PM
I don't have an internal table, my xml is one string which I download with open dataset and transfer, but how can I state at the transfer statement that the donloading file has the structure of a xml?