tags:

views:

10

answers:

0

HI.. I have set for Settings Field (SPField) as "Text".In the below code I have used InnerText.So its saving node values in List.But when I use "InnerXml".It shows it cannot write it as Xml.. I want node values as xml in list.

SPListItem spItem = splistItemCollection[0]; 
spItem["Settings"] = toolSettingsDoc.InnerText.ToString(); 

 sprootweb.AllowUnsafeUpdates = true; 
 spItem.SystemUpdate();
 sprootweb.AllowUnsafeUpdates = false;