|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
XML Deserializer losing control charactersI have a class with a String property, being set from a multi-line Textbox control. When there multiple lines entered in the Textbox, the resulting Text property has embedded \r\n sequences (makes sense). The problem is that deserializing this is dropping the \r half of the sequence, thus losing the formatting of the text when it is displayed in the Textbox again. I've traced this through by doing my serialization to a StringWriter and examining the XML produced by the Serialize method. This does have the \r\n pair embedded withing the value for the object's property. Consistently though, the object resulting from the Deserialize method call has the \r missing. Has anyone seen this, and/or know of a way to fix this. I am loathe to start writing custom serialization code, since I have quite a few classes that would be involved. Thanks for the help -- Rick Bonnett UnumProvident Corporation All questions, answers,comments, opinions or other statements are solely my responsiblilty. They do not reflect the official position of UnumProvident. |
|||||||||||||||||||||||