SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 
        
Home       Members    Calendar    Who's On


12»»

XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000) Expand / Collapse
Author
Message
Posted Wednesday, June 04, 2008 12:23 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: 2 days ago @ 1:12 PM
Points: 414, Visits: 2,250
Comments posted to this topic are about the item XML Workshop XX - Generating an RSS 2.0 Feed with TSQL(SQL server 2000)

Jacob Sebastian, SQL Server MVP
http://beyondrelational.com/blogs/jacob/
Post #511146
Posted Wednesday, June 04, 2008 5:40 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Monday, November 02, 2009 9:26 AM
Points: 3,280, Visits: 962
Excellent article..... Thanks.


Post #511270
Posted Friday, June 06, 2008 12:52 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, June 22, 2009 2:58 AM
Points: 25, Visits: 21
Very useful ! Thanks a lot
Post #512711
Posted Monday, June 16, 2008 4:01 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, February 10, 2009 4:06 AM
Points: 6, Visits: 28
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 compliant
2) how to insert at the beginning of the XML result file this line

Regards
Post #517429
Posted Monday, June 16, 2008 4:07 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: 2 days ago @ 1:12 PM
Points: 414, Visits: 2,250
I think I did not understand the questions fully. could you elaborate?

Jacob Sebastian, SQL Server MVP
http://beyondrelational.com/blogs/jacob/
Post #517431
Posted Monday, June 16, 2008 4:43 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, February 10, 2009 4:06 AM
Points: 6, Visits: 28
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
?xml version="1.0" encoding="ISO-8859-1"?
Post #517441
Posted Monday, June 16, 2008 5:09 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: 2 days ago @ 1:12 PM
Points: 414, Visits: 2,250
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/


Jacob Sebastian, SQL Server MVP
http://beyondrelational.com/blogs/jacob/
Post #517453
Posted Monday, June 16, 2008 9:38 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, February 10, 2009 4:06 AM
Points: 6, Visits: 28
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 encoding

I must use UTF-16. For information I use SQL server 2005.

Regards
Post #517656
Posted Tuesday, June 17, 2008 9:25 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, February 10, 2009 4:06 AM
Points: 6, Visits: 28
Hello,

I have this error :
hexadecimal value 0x00, is an invalid character


I sow your answer in Microsoft forum for a same problem:
replace(description,CHAR(25),'')

I used the same function : REPLACE([NewsSummary],CHAR(0),'')
but that do not work.

Do you have an idea ?
Regards
Post #518366
Posted Tuesday, June 17, 2008 9:12 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: 2 days ago @ 1:12 PM
Points: 414, Visits: 2,250
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.

regards
Jacob


Jacob Sebastian, SQL Server MVP
http://beyondrelational.com/blogs/jacob/
Post #518721
« Prev Topic | Next Topic »

12»»

Permissions Expand / Collapse