﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Jacob Sebastian / Article Discussions / Article Discussions by Author  / XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000) / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 13:46:18 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)</title><link>http://www.sqlservercentral.com/Forums/Topic511146-356-1.aspx</link><description>Hi,It does not really help because I have no way to run it and see the problem. Meanwhile, my only guess is that something is going wrong with your REPLACE() function. You should be able to remove a character by using the REPLACE() function correctly.</description><pubDate>Wed, 18 Jun 2008 10:20:17 GMT</pubDate><dc:creator>jacob sebastian</dc:creator></item><item><title>RE: XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)</title><link>http://www.sqlservercentral.com/Forums/Topic511146-356-1.aspx</link><description>The SELECT :[code]SELECT	1 as Tag,	null as Parent,	[NewsTitle],	[NewsSummary],	LEFT(DATENAME(dw, [NewsDate]),3) + ', ' + STUFF(CONVERT(nvarchar,[NewsDate],113),21,4,' GMT')FROM [sd_News] WHERE [IDChannel] = '11'[/code]With the FOR XML :[code]SELECT	1 as Tag,	null as Parent,	[NewsTitle] as [item!1!title!ELEMENT], 	[NewsSummary] as [item!1!description!CDATA],	LEFT(DATENAME(dw, [NewsDate]),3) + ', ' + STUFF(CONVERT(nvarchar,[NewsDate],113),21,4,' GMT') as [item!1!pubDate!ELEMENT]	FROM [sd_News] WHERE [IDChannel] = '11' FOR XML EXPLICIT[/code]After some tests, it seems that the problem occurs when the HTML data store in the column NewsSummary is very important.Regards.</description><pubDate>Wed, 18 Jun 2008 05:42:10 GMT</pubDate><dc:creator>Le Gloanec</dc:creator></item><item><title>RE: XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)</title><link>http://www.sqlservercentral.com/Forums/Topic511146-356-1.aspx</link><description>could you post some script that reproduces the problem?</description><pubDate>Wed, 18 Jun 2008 04:03:58 GMT</pubDate><dc:creator>jacob sebastian</dc:creator></item><item><title>RE: XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)</title><link>http://www.sqlservercentral.com/Forums/Topic511146-356-1.aspx</link><description>Thanks for your suggestion, the result of this test is incredible :With a SELECT the 0x00 character is not present and after use a FOR XML EXPLICIT the 0x00 character magically appears at the end of a CDATA element like this [code]...0x00]]&amp;gt;&amp;lt;...[/code]I tried to force other column to CDATA but nothing appends.The column which cause this problem have as Data Type text, and store HTML code.have you already see that ?</description><pubDate>Wed, 18 Jun 2008 04:00:06 GMT</pubDate><dc:creator>Le Gloanec</dc:creator></item><item><title>RE: XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)</title><link>http://www.sqlservercentral.com/Forums/Topic511146-356-1.aspx</link><description>In our example, the REPLACE function is expected to remove the unwanted character (CHAR(0)). Try to run a SELECT query for the specific column and apply a REPLACE() operation and make sure those characters are removed from the query result.if that does not work, pls post some sample data. I will have a look at it and see If i can help you with this.regardsJacob</description><pubDate>Tue, 17 Jun 2008 21:12:38 GMT</pubDate><dc:creator>jacob sebastian</dc:creator></item><item><title>RE: XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)</title><link>http://www.sqlservercentral.com/Forums/Topic511146-356-1.aspx</link><description>Hello,I have this error :[quote]hexadecimal value 0x00, is an invalid character[/quote]I sow your answer in Microsoft forum for a same problem:[quote]replace(description,CHAR(25),'')[/quote]I used the same function : REPLACE([NewsSummary],CHAR(0),'')but that do not work.Do you have an idea ?Regards</description><pubDate>Tue, 17 Jun 2008 09:25:25 GMT</pubDate><dc:creator>Le Gloanec</dc:creator></item><item><title>RE: XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)</title><link>http://www.sqlservercentral.com/Forums/Topic511146-356-1.aspx</link><description>Thanks for your answer.With the encoding information, the line feed problem was disappeared.With UTF-8 I was an error : XML parsing: line 1, character 39, unable to switch the encodingI must use UTF-16. For information I use SQL server 2005.Regards</description><pubDate>Mon, 16 Jun 2008 09:38:15 GMT</pubDate><dc:creator>Le Gloanec</dc:creator></item><item><title>RE: XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)</title><link>http://www.sqlservercentral.com/Forums/Topic511146-356-1.aspx</link><description>You will have to do a string operation to do this. Look at the example given in the previous session: http://www.sqlservercentral.com/articles/XML/62661/</description><pubDate>Mon, 16 Jun 2008 05:09:11 GMT</pubDate><dc:creator>jacob sebastian</dc:creator></item><item><title>RE: XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)</title><link>http://www.sqlservercentral.com/Forums/Topic511146-356-1.aspx</link><description>With the line feed each 2034 character the XML result file can not be interpret well by other application because the line feed cut XML tag or data in element.The line that i want to insert is [quote]?xml version="1.0" encoding="ISO-8859-1"?[/quote]</description><pubDate>Mon, 16 Jun 2008 04:43:11 GMT</pubDate><dc:creator>Le Gloanec</dc:creator></item><item><title>RE: XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)</title><link>http://www.sqlservercentral.com/Forums/Topic511146-356-1.aspx</link><description>I think I did not understand the questions fully. could you elaborate?</description><pubDate>Mon, 16 Jun 2008 04:07:32 GMT</pubDate><dc:creator>jacob sebastian</dc:creator></item><item><title>RE: XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)</title><link>http://www.sqlservercentral.com/Forums/Topic511146-356-1.aspx</link><description>Thanks for this great and useful article.I have 2 questions :1) In my result i have each 2034 character a feed line that make my xml file not XML compliant2) how to insert at the beginning of the XML result file this line  Regards</description><pubDate>Mon, 16 Jun 2008 04:01:16 GMT</pubDate><dc:creator>Le Gloanec</dc:creator></item><item><title>RE: XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)</title><link>http://www.sqlservercentral.com/Forums/Topic511146-356-1.aspx</link><description>Very useful ! Thanks a lot</description><pubDate>Fri, 06 Jun 2008 00:52:02 GMT</pubDate><dc:creator>Damien Joly</dc:creator></item><item><title>RE: XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)</title><link>http://www.sqlservercentral.com/Forums/Topic511146-356-1.aspx</link><description>Excellent article..... Thanks.</description><pubDate>Wed, 04 Jun 2008 05:40:31 GMT</pubDate><dc:creator>Anipaul</dc:creator></item><item><title>XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)</title><link>http://www.sqlservercentral.com/Forums/Topic511146-356-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/XML/63043/"&gt;XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)&lt;/A&gt;[/B]</description><pubDate>Wed, 04 Jun 2008 00:23:43 GMT</pubDate><dc:creator>jacob sebastian</dc:creator></item></channel></rss>