XML ripper, from Eloquent Ruby