﻿<?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 » WebForms (How do I?)  » What's the best a way to convert ms sql 2008 data to XML files?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 08:31:24 GMT</lastBuildDate><ttl>20</ttl><item><title>What's the best a way to convert ms sql 2008 data to XML files?</title><link>http://forum.strataframe.net/FindPost23475.aspx</link><description>Hi Trent,&lt;BR&gt;&lt;BR&gt;Say I have several tables related to each other and I want to create the hierarchy of the data such as parent child within the XML.&lt;BR&gt;&lt;BR&gt;These are small tables where I store the data of menu options and sub options etc...&lt;BR&gt;Then I use the XML file for the web site to display all options etc... I need to select only certain fields that hold the data for the menus. I have some other fields that are not needed for the XML.&lt;/P&gt;&lt;P&gt;I appreciate any feedback.&lt;/P&gt;&lt;P&gt;&lt;BR&gt;Thanks,&lt;BR&gt;&lt;BR&gt;Doron</description><pubDate>Mon, 15 Jun 2009 12:45:12 GMT</pubDate><dc:creator>Doron Farber</dc:creator></item><item><title>RE: What's the best a way to convert ms sql 2008 data to XML files?</title><link>http://forum.strataframe.net/FindPost23505.aspx</link><description>Hi Trent,&lt;BR&gt;&lt;BR&gt;Thanks for your reply.&lt;P&gt;[quote][/quote]&lt;BR&gt;The XmlBasics class is not going to help you much in this situation. &lt;BR&gt;[quote][/quote]&lt;BR&gt;&lt;BR&gt;Maybe that could&amp;nbsp;an enhancement feature to the XMLBasic class, to have the capability&amp;nbsp;of more then one&amp;nbsp;table added into the XML!!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Doron</description><pubDate>Mon, 15 Jun 2009 12:45:12 GMT</pubDate><dc:creator>Doron Farber</dc:creator></item><item><title>RE: What's the best a way to convert ms sql 2008 data to XML files?</title><link>http://forum.strataframe.net/FindPost23502.aspx</link><description>You can still do this through ADO.NET.  All you need to do is create a DataSet object, then add the the data tables into the data set.  You will most likely want to create a clone or copy of the table within the BO otherwise you can have other issues.  This will really be the only way to go about this.  The XmlBasics class is not going to help you much in this situation.</description><pubDate>Mon, 15 Jun 2009 12:06:38 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: What's the best a way to convert ms sql 2008 data to XML files?</title><link>http://forum.strataframe.net/FindPost23499.aspx</link><description>Hi Trent,&lt;P&gt;As Edhy indicated below there will be 3 tables involved. Parent, Child and Grand Child. So the &lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: #1f5080; FONT-SIZE: 10pt"&gt;hierarchy&lt;/SPAN&gt;&amp;nbsp;should be created based on that as well.&lt;BR&gt;How would you add addtional tables to the XML and reflect the relations there as well?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Doron</description><pubDate>Mon, 15 Jun 2009 08:46:19 GMT</pubDate><dc:creator>Doron Farber</dc:creator></item><item><title>RE: What's the best a way to convert ms sql 2008 data to XML files?</title><link>http://forum.strataframe.net/FindPost23497.aspx</link><description>[quote][b]Trent L. Taylor (06/15/2009)[/b][hr]You can just use the ADO.NET to output to XML.  If you take the current data table you can output it directly to XML.[/quote]&lt;br&gt;
&lt;br&gt;
This will create the XML file for that single table.  What Doron is asking for is to create an XML file from 3 or more BO related each other as Parent/Child/GrandChild.  I think that this could be done by manually enumerating each BO and using the MicroFour XMLBasics class to create the XML file with the relation data, or is there a way to pass all BOs to automatically create such an XML file?</description><pubDate>Mon, 15 Jun 2009 08:21:22 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: What's the best a way to convert ms sql 2008 data to XML files?</title><link>http://forum.strataframe.net/FindPost23490.aspx</link><description>You can just use the ADO.NET to output to XML.  If you take the current data table you can output it directly to XML.&lt;br&gt;
&lt;br&gt;
[codesnippet]MyBO.CurrentDataTable.WriteXml("c:\OutFile.XML", XmlWriteMode.WriteSchema)[/codesnippet]</description><pubDate>Mon, 15 Jun 2009 06:53:16 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: What's the best a way to convert ms sql 2008 data to XML files?</title><link>http://forum.strataframe.net/FindPost23484.aspx</link><description>Hi Trent,&lt;P&gt;To give you an idea, I need to generate an XML file similar to the Messages_1033.XML created by the Localization and Messaging Editor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So to clarify my question, is there a method somewhere in SF that will help me generating that type of xml output? &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Doron</description><pubDate>Fri, 12 Jun 2009 20:23:34 GMT</pubDate><dc:creator>Doron Farber</dc:creator></item><item><title>RE: What's the best a way to convert ms sql 2008 data to XML files?</title><link>http://forum.strataframe.net/FindPost23477.aspx</link><description>Hi Trent,&lt;/P&gt;&lt;P&gt;I need to see the data in the&amp;nbsp;XML and not onky&amp;nbsp;the tables stucture only. I need to have the actual data with the&amp;nbsp;right hierarchy based on the relations.. Say the data in the&amp;nbsp;SearchCategory will hold the data for some tabs. The data in the SearchOption will&amp;nbsp;present different options to bring the tabs. In the below example I have 2&amp;nbsp;options such as People Search and Email Search. Each option will have several tabs as shown in the SearchCategory etc...&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;U&gt;SearchOptions table:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;PK SearchOption&lt;BR&gt;1&amp;nbsp;&amp;nbsp; People Search&lt;BR&gt;2&amp;nbsp;&amp;nbsp; Email Search&lt;BR&gt;&lt;BR&gt;&lt;U&gt;SearchCategory Table:&lt;BR&gt;&lt;BR&gt;&lt;/U&gt;PK FK SearchCategory&lt;BR&gt;1&amp;nbsp;&amp;nbsp; 1&amp;nbsp; Name&lt;BR&gt;2&amp;nbsp;&amp;nbsp; 1&amp;nbsp; Address&lt;BR&gt;3&amp;nbsp;&amp;nbsp; 1&amp;nbsp; Phone&lt;BR&gt;4&amp;nbsp;&amp;nbsp; 1&amp;nbsp; SSN&lt;BR&gt;5&amp;nbsp;&amp;nbsp; 2&amp;nbsp; Reverse Email&lt;BR&gt;6&amp;nbsp;&amp;nbsp; 2&amp;nbsp; Phone Search&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Doron&lt;/P&gt;&lt;P&gt;&lt;BR&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR&gt;&amp;nbsp;</description><pubDate>Fri, 12 Jun 2009 09:58:52 GMT</pubDate><dc:creator>Doron Farber</dc:creator></item><item><title>RE: What's the best a way to convert ms sql 2008 data to XML files?</title><link>http://forum.strataframe.net/FindPost23476.aspx</link><description>So are you want to retrieve a query from SQL Server then save that data to an XML file or are you wanting to create a structures table in XML that represents your structures in SQL?</description><pubDate>Fri, 12 Jun 2009 09:43:23 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>