use DOM to handle ENML