Adding a new line/break tag in XML [duplicate]
I have been trying to add a new line/break to code within XML and have been unsuccessful.
I have tried so far:
<br />
<br>


Here is a sample of the code I am working with. I included "

" to show where the break is located within the code.
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="dummy.xsl"?>
<item>
<summary>Tootsie roll tiramisu macaroon wafer carrot cake.

 Danish topping sugar plum tart bonbon caramels cake.
</summary>
</item>
New Line XML
with XML
-
Carriage return:

-
Line feed:


or try like @dj_segfault proposed (see his answer) with CDATA;
<![CDATA[Tootsie roll tiramisu macaroon wafer carrot cake.
Danish topping sugar plum tart bonbon caramels cake.]]>
The solution to this question is:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="dummy.xsl"?>
<item>
<summary>
<![CDATA[Tootsie roll tiramisu macaroon wafer carrot cake. <br />
Danish topping sugar plum tart bonbon caramels cake.]]>
</summary>
</item>
by adding the <br />
inside the the <![CDATA]]>
this allows the line to break, thus creating a new line!