lvb Posted November 6, 2007 Report Posted November 6, 2007 I have an HTML table that I would like to parse, and don't want to re-invent the wheel if possible. The end goal is to extract the latest row of data in the HTML file based upon serial number and save the results to a file appended with some LabVIEW test data (voltage, current). Are there any existing libraries that can take the table attached (code sample is attached) and parse to a LabVIEW data type (I was thinking a LabVIEW 2D String Array)? If not, my method would most likely include regex to find the start of a table and parse while iterating through each line... Quote
Justin Goeres Posted November 7, 2007 Report Posted November 7, 2007 QUOTE(brianafischer @ Nov 5 2007, 05:01 PM) I have an HTML table that I would like to parse, and don't want to re-invent the wheel if possible. The end goal is to extract the latest row of data in the HTML file based upon serial number and save the results to a file appended with some LabVIEW test data (voltage, current).Are there any existing libraries that can take the table attached (code sample is attached) and parse to a LabVIEW data type (I was thinking a LabVIEW 2D String Array)?If not, my method would most likely include regex to find the start of a table and parse while iterating through each line... I don't know of any specific libraries, but since I can't keep my hands off a good regex problem... Download File:post-2992-1194319732.zip Quote
lvb Posted November 7, 2007 Author Report Posted November 7, 2007 Very nice. Your implementation is very scalable. My 5 minute implementation is below: Download File:post-4274-1194321125.vi 1 Quote
jaegen Posted November 7, 2007 Report Posted November 7, 2007 QUOTE(Justin Goeres @ Nov 5 2007, 08:32 PM) I don't know of any specific libraries, but since I can't keep my hands off a good regex problem... Now can you make it account for "colspan" and "rowspan"??? Jaegen Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.