-1

I need to add a line break in the content of XML used for C# .Net documentation,

<summary>
    <example>
        <para> content </para>
        (want to add a line break here)
        <code> content </code>
    </example>
</summary>

How can I add it? Thanks in advance. BTW, < para /> not work for me.

c.w
  • 11
  • 1

2 Answers2

0

You can use <br/> tag

<summary>
    <example>
        <para>
            <code>
                a(want to add a line break here)<br/>
                b
            </code>
        </para>
    </example>
</summary>
Pieter
  • 895
  • 11
  • 22
Bobby
  • 1
  • 4
0

If you want a newline in the actual file use the #10; entity. The
element will be interpreted by a browser, not a simple XML display tool for formatting.

SoronelHaetir
  • 14,104
  • 1
  • 12
  • 23