Fix some bugs in attr handling in RXML.