HighTechTalks DotNet Forums  

3 bytes added to XML file by VS NET 2003 Professional

Dotnet FAQs microsoft.public.dotnet.faqs


Discuss 3 bytes added to XML file by VS NET 2003 Professional in the Dotnet FAQs forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
DM McGowan II
 
Posts: n/a

Default 3 bytes added to XML file by VS NET 2003 Professional - 10-03-2003 , 12:30 AM






Today I discovered that VS .NET 2003 Pro tacks 3 bytes onto the beginning of
an XML file created using the New File Wizard. This causes (in my testing)
XmlTextReader's Read method to fail. Is this by design? Enterprise doesn't
show this behavior.



Reply With Quote
  #2  
Old   
Tim Matteson
 
Posts: n/a

Default Re: 3 bytes added to XML file by VS NET 2003 Professional - 10-03-2003 , 11:55 AM






I don't have Pro, but I did have these bytes showing up in my files at one
time. Here's a link to why this happens:
http://msdn.microsoft.com/library/de...us/intl/unicod
e_42jv.asp

Try using the Encoding indicated in the marks when creating your
XmlTextReader.

HTH
Tim
"DM McGowan II" <diltonm (AT) sbcglobal (DOT) net> wrote

Quote:
Today I discovered that VS .NET 2003 Pro tacks 3 bytes onto the beginning
of
an XML file created using the New File Wizard. This causes (in my testing)
XmlTextReader's Read method to fail. Is this by design? Enterprise doesn't
show this behavior.





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.