c# - Parsing HTML table inside XML document using .net -
i not familiar various xml formatting have recieved xml document part of document looks ok (i can convert dataset in .net using xmlreader etc.) however, see html table inside document?
for brevity posting sample html:
<table> <tr> <td>1</td> <td>a1</td> <td>100</td> <td>0</td> <td>0</td> <td>0</td> <td>57.3055058694109</td> <td>-34.25451779412</td> <td>-52.0038336686283</td> <td>58.2700128150308</td> <td>-27.6125327409403</td> <td>-34.0354177282971</td> <td>5.62354809254242</td> <td>-0.964506945619888</td> <td>-6.6419850531797</td> <td>-17.9684159403313</td> <td>5.17635156249084</td> <td>18.4441134607471</td> <td>0.984914387144844</td> </tr> </table>
how parse table using .net (vb.net or c#)
assuming table valid xhtml, can parse using xelement
class.
if isn't, can parse using html agility pack.
under no circumstances should attempt parse using regular expressions.
Comments
Post a Comment