remove old xml builder function