implementation of a rewriter generator which works on XML files.