peter

peter

  • NA
  • 320
  • 0

How to style a WCF RSS feed

Feb 3 2023 11:34 PM

I am following a messageboard app RSS code example.

The problem is the browser output is formatted in XML. How may i apply a style before browser render.

The program consists of a svc file that calls a function which returns a SyndicationFeedFormatter type to an interface like below

Namespace MessageBoard.Web
    <ServiceContract>
    Interface IFeedService
        <OperationContract>
        <WebGet>
        <ServiceKnownType(GetType(Rss20FeedFormatter))>
        <ServiceKnownType(GetType(Atom10FeedFormatter))>
        Function GetLatestMessages(ByVal format As FeedFormat) As SyndicationFeedFormatter

    End Interface
End Namespace

 

I would like to be able to transform this rss feed to html and display on a aspx page instead of render to browser. Mainly because i am unable to style the rss xml based script. 


Answers (2)