Fixed xml generation with xmlbuilder 1.0.