Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Tue, 30 Jun 2009 08:35:12 -0400,    group: microsoft.public.dotnet.xml        back       


Three characters at beginning of xml file written with xmltextwriter   
Here they are:



They appear at the beginning of the file. If I cut and paste the file with 
these characters into a xml validator I get an error. These characters do 
not appear in notepad but do in my other text editor. Explorer seems to open 
the file ok though. Thanks
date: Tue, 30 Jun 2009 08:35:12 -0400   author:   Ellie

Re: Three characters at beginning of xml file written with xmltextwriter   
Ellie wrote:
> Here they are:
> 
> 
> 
> They appear at the beginning of the file. If I cut and paste the file 
> with these characters into a xml validator I get an error. These 
> characters do not appear in notepad but do in my other text editor. 
> Explorer seems to open the file ok though. Thanks

Does that text editor not support Unicode? What you see is (most likely) 
a byte order mark (BOM): http://en.wikipedia.org/wiki/Byte-order_mark


-- 

	Martin Honnen --- MVP XML
	http://msmvps.com/blogs/martin_honnen/
date: Tue, 30 Jun 2009 14:50:16 +0200   author:   Martin Honnen

Re: Three characters at beginning of xml file written with xmltextwriter   
Thanks, that's gotta be it. the xml file is utf-8 and I've got an old 
version of textpad. As long as it is normal and won't cause a problem with 
any xml readers then that's fine.


"Martin Honnen"  wrote in message 
news:%23XZITFY%23JHA.5780@TK2MSFTNGP03.phx.gbl...
> Ellie wrote:
>> Here they are:
>>
>> 
>>
>> They appear at the beginning of the file. If I cut and paste the file 
>> with these characters into a xml validator I get an error. These 
>> characters do not appear in notepad but do in my other text editor. 
>> Explorer seems to open the file ok though. Thanks
>
> Does that text editor not support Unicode? What you see is (most likely) a 
> byte order mark (BOM): http://en.wikipedia.org/wiki/Byte-order_mark
>
>
> -- 
>
> Martin Honnen --- MVP XML
> http://msmvps.com/blogs/martin_honnen/
date: Tue, 30 Jun 2009 11:13:47 -0400   author:   Ellie

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us