vb.net - Get content from HTML list in VB -
okay, have html list of items want use autocomplete source vb application. can't seem strip html out of string. html list follows:
<option value="0001">string example 1</option> <option value="0002">string example 2</option> ...
can advise way of getting content out of huge list that? thinking reading text file line line , extracting content html, i've never worked html in vb before , i'm not sure how it... figured below work, i'm not sure how ask vb content only.
any appreciated.
dim objfso = createobject("scripting.filesystemobject") dim objfile = objfso.opentextfile(my.computer.filesystem.specialdirectories.desktop & "\test2.txt", 1) until objfile.atendofstream txtline = objfile.readline 'get content of line here. 'add content new string. loop
use htmlagilitypack library load html, traverse on document , extract needed data. https://htmlagilitypack.codeplex.com/
Comments
Post a Comment