1. Please note that MS Edge adds a non-standard white space to code snippets copied from the forum. This issue will be fixed in the next versions of the IDEs. For now you should use a different browser.

HTML Table Parsing

Discussion in 'Android Questions' started by Inman, Feb 23, 2011.

  1. Inman

    Inman Well-Known Member Licensed User

    I am new to Basic4Android and have been testing the trial version for the last few days. I will most probably upgrade to the Enterprise version before the month end. I just need to know one thing.

    My current field of work is data mining or in other words content scraping. I have been doing this with VB6 for over 5 years now and would love to take it to Android as well. In VB6 I normally use the HTML DOM to parse tables by declaring a variable 'table' as HTMLTable (after adding the HTML Object Library reference) then use table.rows(0).cells(0).outerText to get the cell data.

    Is this possible in B4A? If yes, are there any tutorials which you could point me to? If no, how are tables parsed in B4A?
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. Inman

    Inman Well-Known Member Licensed User

    Thanks for the reply. I believe XML parser works only if the file is in XML (like an RSS feed or something). What I was looking for was the traditional HTML table (<tr> <td> etc..). I guess I should use the old school plain text parser on HTML, probably with Regex.
  4. Erel

    Erel Administrator Staff Member Licensed User

    I believe so.