Skip to Content
-3

XML is desplayed in one line

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Dec 12, 2017 at 02:16 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.