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

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -