Fixed the REXML xml parser.

Fixes #318