regenerate HTML and XML