How to use line break in xml response

Hi, i am trying to send some values to my website like this:

void XML_response(EthernetClient cl){ 
cl.print("<?xml version = \"1.0\" ?>");
cl.print("<inputs>");
cl.print("<test>");

cl.print("Hello world");
cl.print("Hello world");
cl.print("Hello world");

cl.print("</test>");
cl.print("</inputs>"); }

HTML:

document.getElementsByClassName("test")[0].innerHTML =
this.responseXML.getElementsByTagName('test')[0].childNodes[0].nodeValue;

<span class="test">............</span>

Gives this: Hello worldHello worldHello world

The desired output:
Hello world
Hello world
Hello world

How can i achieve this ? I tried several options like cl.print("
") but this does not work.

You can use println() which should include an end of the line. Or \n indicates a new line.

Thank you RI4ndom. cl.println works but then i got confused because in some lines i had multiple white spaces. This causes unwanted line breaks.
Got that solved with this line in css: p { white-space: pre; }