LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read second table from HTML File

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

Download All
0 Kudos
Message 1 of 2
(1,940 Views)

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…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(1,895 Views)