2013 Aug 07 3:22 PM
Hello Every body,
Knows some one how can remove spaces between the tags of XML File.
Best Regard,
Ouail
2013 Aug 09 4:36 PM
2013 Aug 09 4:36 PM
2013 Aug 12 4:25 AM
Hi Ouail roukbi,
Good...
Please close this thread with answer, how you resolved this problem, it will helps others.
Regards,
Ramesh.T
2013 Aug 12 8:22 AM
Of course Ramesh,
I could remove those spaces from my string to use just the ABAP key word replace all occurrences of regex . But my problem was that i stored data in a internal table, witch contains lines, en every end-line for XML is interpreted as large space, so " replace all occurrences of regex " is not going to help in this case.
As solution, i stored data of internal table in a string by looping from ITAB to WA.
xml_str1 = '<?xml version="1.0" encoding="iso-8859-1"?>'.
loop at gt_xml into gt_xml-line.
concatenate xml_str1 gt_xml-line into xml_str1.
endloop.
So now i stored all of data in a string xml_str1, witch i gave it to this class-method:
call method cl_salv_data_services=>download_xml_to_file
exporting
content = xml_str1
filename = 'C:\Users\Ouail\Desktop\XML_FILE.XML'.
In this was i get data without any space.
Please close this thread.
Thanks for your answers.
Ouail.
2013 Aug 12 8:44 AM
Hi ouail roukbi,
Thanks for your answer.
Please close this thread.
Close this by marking as Correct Answer
Mark your answer as Correct...
2013 Aug 10 12:31 AM
Hi,
Bit confusing never seen such spaces would suggest to view it in a different XML viewer.
Cheers,
Arindam
2013 Aug 10 7:00 AM
Hi Ouail,
I haven't come across this issue till i saw this post.
Looked for the solution and found that, to Remove this spaces you must download your XML file with the FILETYPE = 'ASC' or 'DAT'.
If i am not wrong, you had downloaded this file with the FILETYPE = 'BIN'.
So Please check your FILETYPE used in the GUI_DOWNLOAD.
Regards,
AyyamPerumal
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |