we replace inline double quotes by single quotes, since escaped double quotes still confuse the lxml xml parser