Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have backed up my blog from blogger. The format of the file is Atom XML. What's a quick way to turn it into plaintext? Opening it in a browser leads to formatting errors...

share|improve this question
up vote 3 down vote accepted

Here is a sample Atom to HTML XSLT stylesheet:

If you attach it to your XML file like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="my-atom-to-html-stylesheet.xsl"?>

..then opening the XML in a modern browser will produce nice readable text.

If you change <xsl:output method="html"/> to <xsl:output method="text"/> and remove all the extra markup in the style sheet then you will get pure text output.

share|improve this answer
perfect. if only i'd seen this answer before i wrestled with Python feedparser to get the job done... – ixtmixilix Aug 19 '11 at 16:00

Depending on exactly what you want to include in your plain text version, a simple XSLT transform would work.

If you give an example of your ATOM XML and what you would want the text output to look like, I can give you an example.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.