﻿<?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?)  » XML column</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 03 May 2026 00:20:04 GMT</lastBuildDate><ttl>20</ttl><item><title>XML column</title><link>http://forum.strataframe.net/FindPost27336.aspx</link><description>Any examples or documentation of accessing the XML data in an XML column via BO field property?&amp;nbsp;</description><pubDate>Thu, 10 Jun 2010 11:32:58 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: XML column</title><link>http://forum.strataframe.net/FindPost27385.aspx</link><description>I see. My BO mapper see both XML and variant tpye fields as type XMLReader and I am not sure what to do with that.&lt;/P&gt;&lt;P&gt;Greg, have you had a chance to run this by SF?</description><pubDate>Thu, 10 Jun 2010 11:32:58 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: XML column</title><link>http://forum.strataframe.net/FindPost27369.aspx</link><description>Hi Keith,&lt;br&gt;
&lt;br&gt;
Kind of although the XML column is in table which is accessed via a BO. The XML data is mapped in the BO Mapper as System.String.&lt;br&gt;
&lt;br&gt;
The data is converted into a ADO DataSet because the DevExpress grid understands what that is can parse and render it automatically.&lt;br&gt;
&lt;br&gt;
Cheers, Peter</description><pubDate>Wed, 09 Jun 2010 19:09:36 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item><item><title>RE: XML column</title><link>http://forum.strataframe.net/FindPost27360.aspx</link><description>Greg, thank you very much. I have an immediate need for this, will be anxiously awaiting an answer on the support for these field types within SF.</description><pubDate>Wed, 09 Jun 2010 13:17:54 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: XML column</title><link>http://forum.strataframe.net/FindPost27354.aspx</link><description>Thanks for the post. So you bypass the use of a SF business object when it comes to using the XML column and just use straight ADO/.NET databinding?</description><pubDate>Wed, 09 Jun 2010 07:56:45 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: XML column</title><link>http://forum.strataframe.net/FindPost27349.aspx</link><description>Hi Keith,&lt;br&gt;
&lt;br&gt;
This may help.&lt;br&gt;
&lt;br&gt;
We have a semi generic method of creating interfaces into ERP systems and gather the data into XML format and store that data in a SQL table. The table we use has column called ERXIFData and its data type is XML.&lt;br&gt;
&lt;br&gt;
When we want to show contents of the ERXIFData we use a DevExpress grid and pass to it a dataset that has been generated from the XML data. One instance of ERXIFData could contain contain several 100 rows of data.&lt;br&gt;
&lt;br&gt;
The code we use is:&lt;br&gt;
&lt;br&gt;
	Case clsENU.ERPIFType.ERPBoughtIn&lt;br&gt;
                    ShowAnInterface(Me.luERX.Properties.GetDataSourceValue("ERXIFData", Me.luERX.ItemIndex).ToString, Me.GridControl9, Me.GridView9, Me.XMLDataSetBoughtIn)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
 Private Sub ShowAnInterface(ByVal ERXIFData As String, _&lt;br&gt;
                                ByRef Grid As DevExpress.XtraGrid.GridControl, _&lt;br&gt;
                                ByRef GridView As DevExpress.XtraGrid.Views.Grid.GridView, _&lt;br&gt;
                                ByRef ds As System.Data.DataSet)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
        Dim objXmlNamespaceManager As New System.Xml.XmlNamespaceManager(New System.Xml.NameTable)&lt;br&gt;
&lt;br&gt;
        Dim reader As New System.Xml.XmlTextReader(ERXIFData, _&lt;br&gt;
                                           System.Xml.XmlNodeType.Document, _&lt;br&gt;
                                           New System.Xml.XmlParserContext(Nothing, _&lt;br&gt;
                                                                           objXmlNamespaceManager, _&lt;br&gt;
                                                                           "", _&lt;br&gt;
                                                                           System.Xml.XmlSpace.None))&lt;br&gt;
        ds.ReadXml(reader)&lt;br&gt;
&lt;br&gt;
        Grid.DataSource = ds.Tables(0)&lt;br&gt;
&lt;br&gt;
        Grid.ForceInitialize()&lt;br&gt;
&lt;br&gt;
        GridView.UpdateSummary()&lt;br&gt;
        clsFU.LocaliseAllControls(Grid)&lt;br&gt;
        reader.Close()&lt;br&gt;
&lt;br&gt;
End Sub&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
And that's it.&lt;br&gt;
&lt;br&gt;
The DevExpress Grid renders the columns in the dataset automatically (refer Grid.DataSource = ds.Tables(0)), i.e. we can pass any pieces of XML to the grid (including hierarchical) and it renders correctly.&lt;br&gt;
&lt;br&gt;
To pass in the ERXIFData column we first convert it to String.&lt;br&gt;
&lt;br&gt;
Cheers, Peter</description><pubDate>Tue, 08 Jun 2010 23:46:30 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item><item><title>RE: XML column</title><link>http://forum.strataframe.net/FindPost27348.aspx</link><description>Keith, I'll check on this with Trent and the development team regarding this and also regarding support for the other new data types (date, time, hierarchal ID, etc).</description><pubDate>Tue, 08 Jun 2010 22:24:48 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: XML column</title><link>http://forum.strataframe.net/FindPost27346.aspx</link><description>SQL 2008 - I just hit the same exact issue with the same field as a SQL_VARIANT, Strataframe types the field as XmlReader and I dont know how to interact with it (and cant find much in the way of documentation).&lt;/P&gt;&lt;P&gt;I went the variant route because of the issue I had with the XML&amp;nbsp;field type :(&lt;/P&gt;&lt;P&gt;I am doing this because I need to&amp;nbsp;store user defined data.</description><pubDate>Tue, 08 Jun 2010 16:16:37 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: XML column</title><link>http://forum.strataframe.net/FindPost27344.aspx</link><description>Keith, is this on SQL Server 2005?</description><pubDate>Tue, 08 Jun 2010 15:16:25 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: XML column</title><link>http://forum.strataframe.net/FindPost27342.aspx</link><description>Lots of issues with this mainly due to not finding much in the way of documentation for this column type (if it exists I cant find it). There are no XML fields in Strataflix sample.&lt;/P&gt;&lt;P&gt;I am able to add and save a row in a BO that contains an XML column, but I cannot access it (string conversion error) without going down to the underlying datatable, I also cannot save an update to the field as I get "The XML data type cannot be compared or sorted, except when using the IS NULL operator."&lt;/P&gt;&lt;P&gt;Anyone have an experience using XML columns with SF that cant&amp;nbsp;point me in the right direction or provide some support on this would be appreciated.&amp;nbsp;</description><pubDate>Tue, 08 Jun 2010 08:27:48 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: XML column</title><link>http://forum.strataframe.net/FindPost27341.aspx</link><description>Thanks but that is not what I am looking for. I am looking for sample code or documentation on the SF support for XML type fields. XML fields are typed as XmlReader on the business object and I am having a hard time accessing the data in them where I have no trouble using vanilla ADO.</description><pubDate>Tue, 08 Jun 2010 07:52:06 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: XML column</title><link>http://forum.strataframe.net/FindPost27340.aspx</link><description>Hi Keith. Sorry if I this is not what you are looking for, but here are some explanation and code sample on how to read XML file into a BO:&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost681.aspx"&gt;http://forum.strataframe.net/FindPost681.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Cheers.</description><pubDate>Tue, 08 Jun 2010 07:17:14 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>