update for ruby 2.0
update for ruby 2.0
update for ruby 2.0
update for ruby 2.0
update for ruby 2.0
add encoding support for xml special characters

this is not supported on 1.8 yet

fix default attribute printing
fix locale validation issues