November Happy Hour will be moved to Thursday December 5th.

Problem saving xml in a Property

Vote:
 

I have a property which is a PropertyXhtmlString where the control inherits from PropertyDataControl.

 When i use the SetValue method to save my xml strin geg. <root><string><![CDATA[mystring]]></string></root> the  result is <root><string><![CDATA[<![CDATA[mystring]]>]]></string></root>. However, if i save <root><string>mystring</string></root> the saved value is the same as the submitted one.

Anyone have any ideas?

#25278
Oct 17, 2008 8:14
Vote:
 

It happens because of the implementation of permanent links (I think) in PropertyXhtmlString. If you don´t have any concerns about permanent links or any other special function (i.e. only using the property as a storage area), inherit from PropertyLongString instead.

#25547
Oct 29, 2008 14:37
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.