A
Alex
For example, i have some part of XML file.
<AppSettings>
<Object ClassVersion="1.0.0.0" Type="AppSettings">
<Fields>
<Field Name="App_ID" Type="System.Int32">
<Value>
<int>-1</int>
</Value>
</Field>
<Field Name="AppDate Type="System.DateTime">
<Value>
<dateTime>2007-05-25T00:00:00</dateTime>
</Value>
</Field>
<Field Name="AppFileName" Type="System.String">
<Value>
<string>TEST 03222007.daf</string>
</Value>
</Field>
<Field Name="AppVersion" Type="System.String">
<Value>
<string>1.0.3.3</string>
</Value>
</Field>
<Field Name="_ClassVersion" Type="System.String">
<Value>
<string>1.0.0.0</string>
</Value>
</Field>
</Fields>
</Object>
</AppSettings>
As you can see, its corrupted, because AppDate doesn't gave second ".
I am getting exception when reader.MoveToContent (after i read App_ID)
this all are in try..catch section...
and after that i am receiving smth like string fieldname == "AppDate
Type=";
I can't understand, how i can jump to AppFileName and skip corrupted
AppDate ?
so, how in catch section i can jump to next element ? (during
application's work, i dont know what is the name of next element)
Thanks
<AppSettings>
<Object ClassVersion="1.0.0.0" Type="AppSettings">
<Fields>
<Field Name="App_ID" Type="System.Int32">
<Value>
<int>-1</int>
</Value>
</Field>
<Field Name="AppDate Type="System.DateTime">
<Value>
<dateTime>2007-05-25T00:00:00</dateTime>
</Value>
</Field>
<Field Name="AppFileName" Type="System.String">
<Value>
<string>TEST 03222007.daf</string>
</Value>
</Field>
<Field Name="AppVersion" Type="System.String">
<Value>
<string>1.0.3.3</string>
</Value>
</Field>
<Field Name="_ClassVersion" Type="System.String">
<Value>
<string>1.0.0.0</string>
</Value>
</Field>
</Fields>
</Object>
</AppSettings>
As you can see, its corrupted, because AppDate doesn't gave second ".
I am getting exception when reader.MoveToContent (after i read App_ID)
this all are in try..catch section...
and after that i am receiving smth like string fieldname == "AppDate
Type=";
I can't understand, how i can jump to AppFileName and skip corrupted
AppDate ?
so, how in catch section i can jump to next element ? (during
application's work, i dont know what is the name of next element)
Thanks