Julien, > Hi > > I get weird results when using XmlWriter. The first line contains characters > that don't appear to be legal. > > <EF><BB><BF><?xml version="1.0" encoding="utf-8"?> What you call weird is actually the BOM :-) http://en.wikipedia.org/wiki/Byte_Order_Mark Robert