Quantcast
Channel: SyndicationFeed: Content as CDATA? - Stack Overflow
Browsing latest articles
Browse All 10 View Live

Answer by Tsukuru for SyndicationFeed: Content as CDATA?

It might be too late but I leave my solution. I added it as a ElementExtension then it works for me. My environment is .NET 4.5.XNamespace nsDefault = "http://www.w3.org/2005/Atom";var content = new...

View Article



Answer by lucamauri for SyndicationFeed: Content as CDATA?

The shortest way to do this is:.Content = SyndicationContent.CreateXhtmlContent("<![CDATA[The <em>content</em>]]>")That will be outputted in the XML as <entry>…<content...

View Article

Answer by swestner for SyndicationFeed: Content as CDATA?

Here is what we did :public class XmlCDataWriter : XmlTextWriter { public XmlCDataWriter(TextWriter w): base(w){} public XmlCDataWriter(Stream w, Encoding encoding): base(w, encoding){} public...

View Article

Answer by Bart for SyndicationFeed: Content as CDATA?

For those for whom the solution provided by cpowers and WonderGrub also didn't work, you should check out the following SO question, because for me this question was actually the answer to my occurence...

View Article

Answer by WonderGrub for SyndicationFeed: Content as CDATA?

I had the same problem as some where the WriteContentsTo override wasn't being called in cpowers example (still no idea why). So, I changed it to inherit from the SyndicationContent class instead. Not...

View Article


Answer by cpowers for SyndicationFeed: Content as CDATA?

This worked for me:public class CDataSyndicationContent : TextSyndicationContent{ public CDataSyndicationContent(TextSyndicationContent content) : base(content) {} protected override void...

View Article

Answer by markod for SyndicationFeed: Content as CDATA?

try thisXmlReaderSettings settings = new XmlReaderSettings(); settings.IgnoreComments = false; //settings.ProhibitDtd = false; using (XmlReader reader = XmlReader.Create(rssurl, settings))

View Article

Answer by Ross for SyndicationFeed: Content as CDATA?

This should work.item.Content = new TextSyndicationContent("<b>Item Content</b>",TextSyndicationContentKind.Html);

View Article


Answer by TheVillageIdiot for SyndicationFeed: Content as CDATA?

try item.Content = "<![CDATA["+ SyndicationContent.CreateHtmlContent("<b>Item Content</b>") +"]]>";

View Article


SyndicationFeed: Content as CDATA?

I'm using .NET's SyndicationFeed to create RSS and ATOM feeds. Unfortunately, I need HTML content in the description element (the Content property of the SyndicationItem) and the formatter...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images