Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

XML is desplayed in one line

0 Kudos

Hello,

I have to create an XML file that i have to send using FTP. but before that i'm testing it by exporting it to my local desktop.

My problem is when i open the .xml file i find it displayed in one line (using Code Writer)

but when i open it with internet explorer it is shown properly so my question is when i'll send it using FTP will it be also in one line or not ?

If so, how can i correct that ?

Thanks in advance.

Best regards

1 ACCEPTED SOLUTION

pokrakam
Active Contributor
0 Kudos

XML doesn't care about line breaks. Some tools create XML with line breaks to make it more readable, others don't. Some display tools (Internet Explorer) will insert line breaks for display, others don't because you might want to see the real data.

No idea about Code Writer, but in Notepad++ and TextWrangler for example you have an explicit commands to insert line breaks.

But as far as the content is concerned it's irrelevant. Except for stuff in CDATA tags where line breaks are part of the content. There may be other subtleties I am not aware of.

4 REPLIES 4

horst_keller
Product and Topic Expert
Product and Topic Expert

Google for whitespaces in XML?

pokrakam
Active Contributor
0 Kudos

XML doesn't care about line breaks. Some tools create XML with line breaks to make it more readable, others don't. Some display tools (Internet Explorer) will insert line breaks for display, others don't because you might want to see the real data.

No idea about Code Writer, but in Notepad++ and TextWrangler for example you have an explicit commands to insert line breaks.

But as far as the content is concerned it's irrelevant. Except for stuff in CDATA tags where line breaks are part of the content. There may be other subtleties I am not aware of.

0 Kudos

Thank you for your explanation

0 Kudos

Thank you