Greetings.
Just wondering if it is possible to use XmlTextReader to
read off a html doc:
e.g. XmlTextReader tr = new XmlTextReader
("http://localhost/test.xml");
where test.xml contains the following:
<table cellspacing="1" cellpadding="1" width="100%">
<tr valign="top">
<td class="head" width="20%">test heading1</td>
<td class="head" width="10%">test heading2</td>
</tr>
<tr valign="top">
<td class="content" width="20%">content1</td>
<td class="content" width="10%">
<table cellspacing="0" width="100%">
<tr>
<td align="left">test</td>
<td nowarp align="right">
<nobr>0.123456</nobr>
</td>
</tr>
</table>
</td>
</tr>
</table>
It seems to work for the first few seconds and then it
crashes my win app after the XmlTextReader come across
certain situation when doing a Xml.TextReader.Read(). Is
it to do with the well-formness(is there such a word??) of
this html doc? Also, is there a way to detect and convert
to the #1390(can't remember if this is right but I
am trying to say the equivalent special character) on the
fly (i.e. without saving the html onto disk)?
Any thought will be appreciated.