Generate Binary Contents of an XML File
<p>I have a column called <code>contents</code> in a table called <code>File</code> in SQL Server 2008. The <code>content</code> column's data type is <code>varbinary(MAX)</code>. I have an XML file and I need to generate its content in binary using c#.net 3.5. </p>

<p>The name of the file is <code>Test.XML</code> and I need to generate its contents in a file called <code>Test.txt</code>. Then I can write a update script to set its contents.</p>
