How do I access a specific HTML element using C#? -


i have string containing html , need able access specific element text (the element has no id or class or name regex out of question).

for example, lets needed access: "/html/body/div/div[3]/div/table[0]/div/ul/li[12]/a/".

how go doing this?

if html formatted, can parse html xmldocument

also maxim mentioned, html agility pack can need.

here's recent article 4guysfromrolla on parsing html html agility pack


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -