Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

My company is currently developing a mobile application and is planning on feeding information into it via wordpress.com (due to financial constraints - not for profit organization), but we've run into a problem with the feed. The feeds on wordpress.com are XML and show up improperly in our app. Is there any way to convert this XML feed into an RSS 2.0 feed? I'm open to custom CSS designing on the wordpress site as well.

Thanks! Andrew

share|improve this question

migrated from superuser.com Jul 3 '11 at 22:32

This question came from our site for computer enthusiasts and power users.

2 Answers 2

There is a built-in RSS 2.0 feed. Let's assume your blog is http://broodingthoughts.wordpress.com/. If you go to http://broodingthoughts.wordpress.com/feed/ you'll automatically be redirected to a RSS 2.0 feed of your blog. To confirm, look at the source. If it displays the following, like mine does, it's legit:

<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
    >

If you're still having issues with displaying the content, check your RSS feed reader.

On another note, there are plenty of ways to freely host your non-profit's wordpress website while using wordpress.org (Wordpress.com vs. Wordpress.org). I know because I run a self-hosted Wordpress website for a non-profit on a free server. Most hosts give you your own subdomain like wordpress.com. If you're interested let me know and I'll point you in the right direction.

share|improve this answer

You could use an XSLT transformation.

XSLT stands for eXtensible Stylesheet Language Transform. Basically, an .xslt file allows you to take XML (or any other structured markup language like HTML) and apply a transformation. You could take the XML that Wordpress generates and use it to transform into the XML structure that RSS feeds use (RSS is just XML in a specific format).

You apply an XSLT file against an XML file, and the output is an XML file in the new format. Browsers are capable of applying an XSLT file against the source of a file to create a new version. You could try having one page for the normal XML, and another page that emits a tag that applies the XSLT file, making it an RSS feed.

The downside to this is having to do some learning about XSLT, which can be a bit of a pain and is not used very often. Certain mobile browsers might not support it. The advantage is that it was designed to transform XML and runs very fast.

You might also be able to get Wordpress to do the work on the server-side, making the browser used a moot point.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.