Ruby Optimized XML Parser