Try our conversational search powered by Generative AI!

Problem saving xml in a Property


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?

Oct 17, 2008 8:14

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.

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.