don't reuse writeFile
scrape both text and xml