1. You're using dataURL method2. You're using UTF-8 encoded XML3. Your XML has correct BOM Mark (to do so, use StreamWriter Object in ASP.NET)