It's most likely a Byte Order Mark, which the .NET libraries generate by default. The only way I've suppressed generation of it is to save the document with an XmlTextWriter initialised with a null Encoding ("If encoding is null it writes out the stream as UTF-8 and omits the encoding attribute from the ProcessingInstruction."), or even with an ecoding of new UTF8Encoding(false). Check the docs and try it out, ISTR having some problem with settings that were supposed to suppress the BOM not actually doing so.

Iain.

By on 7/16/2008 8:28 AM ()

It was a BOM indeed. Problem solved.

Thx

By on 7/17/2008 7:34 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper