Fix XML tag order issue in ruby-1.8