Feedburner api xml


#1

I’m trying to query feedburner’s api (as according to their
documentation). I’m using ‘net/http’ as outlined here:
@feed_stats =
Net::HTTP.get(URI.parse(“http://api.feedburner.com/awareness/1.0/GetFeedData?uri=

  • @feed_uri))

The query returns this xml:

<?xml version="1.0" encoding="UTF-8"?>

I’m trying to work out how to parse this xml so I can display the data
in my view. Thanks in advance


#2

you could use REXML, a ruby xml processing library available in the
stdlib.