views:

679

answers:

2

I am inserting items into a Sharepoint list using C# and accessing the lists.asmx web service. One of the fields in the list is a multiple line text field (rich text), and I want to insert line breaks into the field. What characters do I put in the XML request to insert a line break? Thanks.

+1  A: 

You can add <br /> tags to the text. the content of the field is stored in a CDATA element.

Colin
+1. Should just be HTML that you can update.
Kit Menke
+1  A: 

I have the same setup as you and I tired <br /> but it won't translate over if you are using an XML element to update the list.

When your generating your text, use <![CDATA[<br/>]]> instead of <br /> .

This will translate over, tested and verified.