﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » How do I use the XML DataType</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 08 Jun 2026 21:34:35 GMT</lastBuildDate><ttl>20</ttl><item><title>How do I use the XML DataType</title><link>http://forum.strataframe.net/FindPost13771.aspx</link><description>I am wanting to utilize the SQL 2005 XML DataType as a field for a history table and I'm having trouble figuring out how to do this.&amp;nbsp; I haven't been able to find any VB examples that &amp;nbsp;show how to really use this data type.&lt;/P&gt;&lt;P&gt;What I want to do is have a History table with 4 fields.&amp;nbsp; HistoryID, TableID, RecordID, and History (XML).&lt;/P&gt;&lt;P&gt;I'm creating dynamic datasets with the the info I need to store for the history and I have not been able to figure out how to read or write to the XML field.&amp;nbsp; All I need is a link to some examples using VB.NET and if somebody can help, an example using a StrataFrame businessobject.&lt;/P&gt;&lt;P&gt;Any help with this is greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks!</description><pubDate>Mon, 28 Jan 2008 13:12:06 GMT</pubDate><dc:creator>Crones</dc:creator></item><item><title>RE: How do I use the XML DataType</title><link>http://forum.strataframe.net/FindPost13778.aspx</link><description>No problem :)</description><pubDate>Mon, 28 Jan 2008 13:12:06 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How do I use the XML DataType</title><link>http://forum.strataframe.net/FindPost13774.aspx</link><description>I'll look into trying that instead.&lt;/P&gt;&lt;P&gt;Thank you!</description><pubDate>Mon, 28 Jan 2008 12:49:53 GMT</pubDate><dc:creator>Crones</dc:creator></item><item><title>RE: How do I use the XML DataType</title><link>http://forum.strataframe.net/FindPost13773.aspx</link><description>Really you may be better off creating a VarBinary(MAX) field and serializing the DataSet (or XML data) into that field.&amp;nbsp; I believe that this will be less complicated and produce better results.&amp;nbsp; Anytime that we have the need to store XML contents, we will generally use a VarChar(MAX) and store teh XML text or use a VarBinary(MAX) and store the Byte() array of the file.&amp;nbsp; Either way will work, and the VarChar(MAX) may be easier than storing it as a VarBinary byte array.&amp;nbsp; But this the approach that I would take.</description><pubDate>Mon, 28 Jan 2008 12:46:55 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>