Getting WordPress RSS feed to display in Win8 App

More Windows 8 application development learning today.

I’ve been putting together an RSS reader for Win8 and following a tutorial from Microsoft on the subject but their feeds were structured differently from ours. Simple matter of changing the querySelectors, right? Wrong. I changed all the tags but still had trouble but thanks to this lovely Stack Overflow thread I learnt about name spacing RSS feeds and used the following code to get the data.

//process content so it displays nicely
 var staticContent = toStaticHTML(post.querySelector("encoded").textContent);

Life is good.

About Nick

Melbourne based web developer that loves building front-end systems with anything from vanilla JS to React. Infosec student and active learner. Subscribe to the blog

www ·

2 thoughts on “Getting WordPress RSS feed to display in Win8 App”

  1. lordflapjack


Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.