"There is no unicode byte order mark:cannot switch to unicode" error while loading with XmlDocument clas
I'm trying to load the Application.MyApp file and am using Visual Studio 2005 june ctp. This file is a new file generated by visual studio and is the "code behind" all VB Projects in VS 2005. I need to load this file and retreive a piece of information i cant seem to find anywhere else, but I'm running into this error! This error pops when I execute the doc.Load(filename) member.
is there a way to force it to use a specific byte order? I find nothing in the XmlDocument class that looks like it might effect this.
Thanks in advance
The file looks like:
<?xml version="1.0" encoding="utf-8"?>
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
it can b solved if u just remove encoding attribute from PI(processing instruction ),ie, xml tag in your xsl file...
instead of this...
<?xml version="1.0" encoding="utf-16"?>
<?xml version="1.0" ?>
in xsl file....
- Proposed as answer by sagar T.U. _ Tuesday, March 30, 2010 2:02 PM