re4x : an implementation of EcmaScript for XML using REXML as base language