TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
MZeki Osmancik
NA
13
13.1k
RSS reader
Dec 1 2012 12:58 PM
hi i want to built a Windows Store App RSS Reader.i want to read WordPress feed for example "http://www.mzekiosmancik.com/feed/atom/" but i have an error
Invalid XML. (Exception from HRESULT: 0x83750002)
i write this codes
private async Task GetFeedAsync(string feedUriString)
{
// using Windows.Web.Syndication;
SyndicationClient client = new SyndicationClient();
Uri feedUri = new Uri(feedUriString);
try
{
SyndicationFeed feed = await client.RetrieveFeedAsync(feedUri);
Blog feedData = new Blog();
feedData.Title = feed.Title.Text;
foreach (SyndicationItem item in feed.Items)
{
Post feedItem = new Post();
feedItem.Title = item.Title.Text;
feedItem.PubDate = item.PublishedDate.DateTime;
feedItem.Author = item.Authors[0].Name.ToString();
if (feed.SourceFormat == SyndicationFormat.Atom10)
{
feedItem.Content = item.Content.Text;
}
else if (feed.SourceFormat == SyndicationFormat.Rss20)
{
feedItem.Content = item.Summary.Text;
}
feedData.Items.Add(feedItem);
}
this.DataContext = feedData;
}
catch (Exception ex)
{
// Log Error.
}
}
Reply
Answers (
0
)
Can any one tell good learning resource to develop window st
how to send the pasted text in mail without database interac