07-09-2019 06:28 PM
Hello,
In the attached llb file, that contains a Top Level VI, I am trying to extract the second table from the HTML file with the label "Run Info". I tried doing a search for "Run Info", but I end up with the first table. Please note that the attached HTML file is part of a larger file. There are other tables in the actual file. How can I go about extracting the second Table with the "Run Info" heading.
Also, if there is another table with "Run Info" header, how do I extract that table also and create a 3D array?
Thanks,
hiNi
07-16-2019 03:45 AM - edited 07-16-2019 03:45 AM
Hi hiNI,
How can I go about extracting the second Table with the "Run Info" heading.
1. Load the HTML file as plain text string.
2. Search the string for ">Run Info<".
3.When found: Search for "<table", then for next "</table>. Keep the substring in between: you got your table data.
if there is another table with "Run Info" header, how do I extract that table also and create a 3D array?
4. Repeat with step 2 until there is no other ">Run Info<".
(That's the brute-force way…)