<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>[How Do I:] Create XML Documents from SQL Data?</title><link>http://asp.net</link><pubDate>Tue, 20 Apr 2010 09:52:35 GMT</pubDate><generator>umbraco</generator><description>Comments for [How Do I:] Create XML Documents from SQL Data?</description><language>en</language><atom:link href="http://asp.net/rss/comments/37528" rel="self" type="application/rss+xml" /><item><title>Comment Posted by danivin</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Mon, 26 May 2008 09:05:32 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006774</guid><description><![CDATA[ <p>Thanks Miss.Massi .. Its very clear and cool to understand</p> <p>Its really worth to listen this ....Those who want to </p> <p>migrate to VS2008 and easy generation of XML ..Just go thru</p> <p>this ....... &#160;</p> <p>דזעסוס</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/danivin.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by storm_vbs</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Fri, 06 Jun 2008 12:51:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006775</guid><description><![CDATA[ <p>Thanks for the nice tutorial. Do you know if it is possible to do the same things using C#? I mean doing them using similar simple syntax without using XDocument and XElement</p> <p>regards</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/storm_vbs.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cv_vikram</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Mon, 18 Aug 2008 10:58:11 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006776</guid><description><![CDATA[ <p>thanks for the video.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/cv_vikram.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Aksar</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Thu, 16 Oct 2008 10:30:06 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006777</guid><description><![CDATA[ <p>Its Amazing Video, But can I get same thing using C# code?</p> <p>Thanks!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Aksar.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by djibril_chimere_DIAW</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Fri, 24 Oct 2008 05:10:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006778</guid><description><![CDATA[ <p>Thanks !J&#235;r&#235;j&#235;f!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/djibril_chimere_DIAW.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by angela_china</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Wed, 27 May 2009 03:15:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006779</guid><description><![CDATA[ <p>XDocument and XElement?</p><p>storm_vbs</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/angela_china.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mklsmr</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Wed, 08 Jul 2009 21:25:09 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006780</guid><description><![CDATA[ <p>Excellent video. Can someone tell me how to do this in vwd 2008. This demo is using a console application in vb 2008 and I&#39;m confused how to do it. </p><p>Thank you</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mklsmr.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mklsmr</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Thu, 09 Jul 2009 00:57:12 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006781</guid><description><![CDATA[ <p>Excellent video. Can someone tell me how to do this in vwd 2008. This demo is using a console application in vb 2008 and I&#39;m confused how to do it. </p><p>Thank you</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mklsmr.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by vik20000in</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Fri, 21 Aug 2009 08:28:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006782</guid><description><![CDATA[ <p>many thanks for the video</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/vik20000in.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by zeyzone</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Sun, 11 Oct 2009 17:56:27 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006783</guid><description><![CDATA[ <p>Goodwork massi</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/zeyzone.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by chokei</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Thu, 05 Nov 2009 12:20:56 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006784</guid><description><![CDATA[ <p>thanks for this cool video!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/chokei.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jwagen</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Wed, 27 Jan 2010 17:59:28 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006785</guid><description><![CDATA[ <p>I am recieving an error on my xml file: The XML page cannot be displayed</p><p>Invalid at the top level of the document</p><p></p><p>Any ideas what I did wrong.</p><p></p><p> Dim ordersXML = &lt;Orders&gt;</p><p>                    &lt;%= From orders In db.Orders _</p><p>                        Select &lt;Order&gt;</p><p>                        &lt;FirstName&gt;&lt;%= orders.FirstName %&gt;&lt;/FirstName&gt;</p><p>                        &lt;/Order&gt; %&gt;</p><p>                        &lt;/Orders&gt;</p><p></p><p>        ordersXML.Save(&quot;C:\Data\orders.xml&quot;)</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/jwagen.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by luis_m_martinez</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Fri, 12 Mar 2010 09:06:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006786</guid><description><![CDATA[ <p>Hi jwagen,</p><p>Add at the beginning of your XML this tag &lt;?xml version=&quot;1.0&quot;?&gt;</p><p></p><p>cheers!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/luis_m_martinez.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by slsaterz</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Tue, 23 Mar 2010 17:04:55 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006787</guid><description><![CDATA[ <p>I&#39;m following Beth Massi&#39;s Namespaces video. When I add to a tag &lt;CATALOG xmlns=&quot;..:..:..:...&quot;&gt; in my XML file , I get the following message: The ..... element not declared.</p><p></p><p>Can you Help?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/slsaterz.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by sovanna</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Sat, 17 Apr 2010 21:54:04 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006788</guid><description><![CDATA[ <p>The XML page cannot be displayed </p><p></p><p>Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. </p><p></p><p></p><p>--------------------------------------------------------------------------------</p><p></p><p>Whitespace is not allowed at this location. Error processing resource &#39;<a rel="nofollow" href="http://www.bellafindings.com/11.asp&#39;." target="_blank">www.bellafindings.com/</a> Line 1, Posit...</p><p></p><p>&lt;br&gt;&lt;item&gt;1666&lt;title&gt;10MM 3.5CT 4 PRONG SETTING WITH PEG&lt;/title&gt;32.62&lt;/item&gt;&lt;br&gt;&lt;item...</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/sovanna.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by sovanna</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Sat, 17 Apr 2010 21:57:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006789</guid><description><![CDATA[ <p>Here is my erro page in browser</p><p></p><p>The XML page cannot be displayed </p><p></p><p></p><p>Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. </p><p></p><p></p><p></p><p>--------------------------------------------------------------------------------</p><p></p><p></p><p>Whitespace is not allowed at this location. Error processing resource &#39;www.bellafindings.com/ Line 1, Posit...</p><p></p><p></p><p>&lt;br&gt;&lt;item&gt;1666&lt;title&gt;10MM 3.5CT 4 PRONG SETTING WITH PEG&lt;/title&gt;32.62&lt;/item&gt;&lt;br&gt;&lt;item...</p><p></p><p></p><p></p><p></p><p>I want to creat xml using asp code for google base.</p><p>can help me to fix it please, here is my asp page:</p><p></p><p>&lt;%</p><p>Response.ContentType = &quot;text/xml&quot;</p><p></p><p>&#39;declare the variables </p><p>Dim Connection</p><p>Dim Recordset</p><p>Dim SQL</p><p></p><p>&#39;declare the SQL statement that will query the database</p><p>SQL = &quot;SELECT * FROM findin.products&quot;</p><p></p><p>&#39;create an instance of the ADO connection and recordset objects</p><p>Set Connection = Server.CreateObject(&quot;ADODB.Connection&quot;)</p><p>Set Recordset = Server.CreateObject(&quot;ADODB.Recordset&quot;)</p><p></p><p>&#39;open the connection to the database</p><p>Connection.Open &quot;DSN=sovanna;UID=vanna;PWD=vann111;Database=products&quot;</p><p></p><p>&#39;Open the recordset object executing the SQL statement and return records </p><p>Recordset.Open SQL,Connection</p><p></p><p>Response.write(&quot;&lt;?xml version=&#39;1.0&#39; encoding=&#39;ISO-8859-1&#39;?&gt;&quot;)</p><p>Response.write (&quot;&lt;channel&gt;&quot;)</p><p></p><p>&#39;first of all determine whether there are any records </p><p>If Recordset.EOF Then </p><p>Response.Write(&quot;No records returned.&quot;) </p><p>Else </p><p>&#39;if there are records then loop through the fields </p><p>Do While NOT Recordset.Eof</p><p>Response.write (&quot;&lt;item&gt;&quot;)   </p><p>Response.write Recordset(&quot;idProduct&quot;)</p><p>Response.write (&quot;&lt;title&gt;&quot;)</p><p>Response.write Recordset(&quot;description&quot;)</p><p>Response.write (&quot;&lt;/title&gt;&quot;)</p><p>Response.write Recordset(&quot;price&quot;)</p><p>response.write (&quot;&lt;/item&gt;&quot;)</p><p>Response.write &quot;&lt;br&gt;&quot;    </p><p>Recordset.MoveNext     </p><p>Loop</p><p>End If</p><p></p><p>&#39;close the connection and recordset objects to free up resources</p><p>Response.Write (&quot;&lt;/channel&gt;&quot;)</p><p>Recordset.Close</p><p>Set Recordset=nothing</p><p>Connection.Close</p><p>Set Connection=nothing</p><p>%&gt;</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/sovanna.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by vvvvvdev</title><link>http://asp.net/web-forms/videos/data-access/linq-videos-from-the-vb-team/how-do-i-create-xml-documents-from-sql-data</link><pubDate>Tue, 20 Apr 2010 09:52:35 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006790</guid><description><![CDATA[ <p>thanx my dear</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/vvvvvdev.jpg?forceidenticon=false&amp;dt=635049278400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>