Help wanted with REXML

I’m having some trouble making sense out of REXML’s behavior. Help?

http://pastie.org/10968744#1-2

-r

I’d like to help but it has been years since I last used XML myself. :\

I sorta moved towards yaml and json.