I want to read some xml files.
when i am opening these files with notepad/wordpad/MS Word or any Browser, it is opening in its original form.But when i tried to execute it with MS DOS, an invisible chacter like “∩╗┐” is seen.
I think ‘∩╗┐‘ is creating an error.i am finding the error “Content is not allowed in prolog.”
Please tell me how can i remove this invisible junk characters from xml file using C# code.
Thanks in advance.
That might be the UTF-8 byte-order mark. Many text editors (for example Notepad++ and jEdit) allow you specify whether the BOM should be written for UTF-8 or not. With Windows Notepad your only option is to save the file as ANSI.