Trying to port the XML editor to ruby