views:

41

answers:

0

At the moment, if I save <element></element> to a SQL Server 2008 database in a field of type xml, it converts it to <element/>.

How can I preserve the xml empty text as is when saving?

In case this is a gotcha, I am utilising Linq to Sql as my ORM to communicate to the database in order to save it.