-
VB Question, How to read from an HTML file?
Hello,
In my code, I need to read lines, each one at a time from an HTML file and put the fields of that line in a one Dimensional array.
the following is a one line example of what's in the HTML file:
Sphere <tr><td><a href="http://datasheet-web/DS_Archive/Mechanics/gen-00230150001-ds.pdf" target=_blank>00230150001</a></td><td>General Brand</td><td>DIN5401-3-A2</td><td>Ball,Sphere,3Dia,SS,+/-0.05</td><td>Active</td><td> </td><td> </td><td><a href="K:/Pro_stds/Library/All_Parts/BALLS.prt.4" target=_blank>Model</a></td><td>Acceptable</td><td><font color="#00bb00">N/A</font></td><td><font color="#00bb00">Yes</font></td><td>0</td><td>0.13</td></tr>
My problems is how do I put only the actual fields of that line in the elements of the array? I Just don't need all of the HTML Tags between the fields.
Thanks In Advance
Gilad
-
Use .Substring(), .Find() .IndexOf(), etc to strip out the tags, and parse the data.
It's been discussed many times before. Search the forums.
David CodeGuru Article: Bound Controls are Evil-VB6
CodeGuru Reviewer
2006 Dell CSP
2006, 2007 & 2008 MVP Visual Basic If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post! 
Similar Threads
-
By bubu1234 in forum VB Classic
Replies: 1
Last Post: 01-21-2007, 09:25 PM
-
By Dralion in forum VB Classic
Replies: 6
Last Post: 02-01-2006, 04:06 PM
-
Replies: 1
Last Post: 10-03-2002, 11:27 AM
-
Replies: 146
Last Post: 08-12-2002, 10:40 PM
-
By Larry Rebich in forum vb.announcements
Replies: 1
Last Post: 04-02-2002, 10:45 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks