Whatever you're doing for parsing XML isn't a good practice at all.
I would suggest you to
HTML Agility pack[
^], which is helpful for parsing HTML.
or alternatively see Article by
Nish[
^] a very well known author in Code project. See how he has parsed HTML in his code.