XmlTextReader gives Name cannot begin with the '.' character, hexadecimal value 0x00. Line 1, positi

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span style="color:#008080; font-size:x-small <span style="color:#008080; font-size:x-small
hi,
I am getting exception for <span style="font-size:x-small <span style="font-size:x-small XmlTextReaders read method in c<span style="font-size:x-small <span style="font-size:x-small #. Read method the Name cannot begin with the .
character, hexadecimal value 0x00. Line 1, position 2. Really would like to know the possible reason for this.....
<span style="font-size:x-small <span style="color:#000000 <span style="color:#008080 this is the code i am using.
<span style="color:#008080; font-size:x-small <span style="color:#008080; font-size:x-small <span style="color:#008080; font-size:x-small <span style="color:#008080; font-size:x-small <span style="color:#008080; font-size:x-small <span style="color:#008080; font-size:x-small
XmlTextReader
<span style="color:#008080; font-size:x-small <span style="color:#008080; font-size:x-small XmlDocument<span style="font-size:x-small document =
<span style="color:#0000ff; font-size:x-small <span style="color:#0000ff; font-size:x-small new<span style="font-size:x-small
<span style="color:#008080; font-size:x-small <span style="color:#008080; font-size:x-small XmlDocument<span style="font-size:x-small ();<span style="font-size:x-small

<span style="color:#0000ff; font-size:x-small <span style="color:#0000ff; font-size:x-small <span style="font-size:x-small <span style="font-size:x-small
Reader =<span style="color:#0000ff; font-size:x-small <span style="color:#0000ff; font-size:x-small new<span style="font-size:x-small
<span style="color:#008080; font-size:x-small <span style="color:#008080; font-size:x-small XmlTextReader<span style="font-size:x-small (ValiedFileName);<span style="color:#0000ff; font-size:x-small <span style="color:#0000ff; font-size:x-small <span style="font-size:x-small
Reader.Read();
document.Load(Reader);
Reader.Close();
<span style="font-size:x-small

Reader.Read(); throws Name cannot begin with the . character, hexadecimal value 0x00. Line 1, position 2 exception.....
<span style="font-size:x-small thanks in advance.


<span style="color:#000000; font-size:x-small Reader =
<span style="color:#0000ff; font-size:x-small <span style="color:#0000ff; font-size:x-small null<span style="font-size:x-small <span style="color:#000000 ;<span style="font-size:x-small


View the full article
 
Back
Top