-
problem with reading html line
Here is a piece of code my app
if( !foundRates )
{
//if not, check if it starts in this line
foundRates = (line.indexOf(startRates) != -1);
}
//check if this line contains interesing information
else if( ( infoIndex = line.indexOf(startInfo)) != -1 )
{
while( colCounter < 11)
{
//extract the information
endIndex = line.indexOf(endInfo,0);
infoString = line.substring( infoIndex + startInfoLength, endIndex );
//put it in a 2d array
info[rowCounter][colCounter] = infoString;
colCounter++;
}
}
i am trying to extract each of the currency names from a line of source code within a html web page.
Here is the source code
<td align="center" class="taulaverdfluix">USD</td><td align="center" class="taulaverdfluix">EUR</td><td align="center" class="taulaverdfluix">GBP</td><td align="center" class="taulaverdfluix">JPY</td><td align="center" class="taulaverdfluix">CHF</td><td align="center"
this is all one line on the page source . i want to know how do i get the above code to move along the line instead of reading USD over and over again. i want it to read EUR, GBP etc.
for those who want to know what enfinfo and startinfo are = to here they are
endinfo = </td>
startInfo = "<td align=\"center\" class=\"taulaverdfluix\">";
Similar Threads
-
Replies: 1
Last Post: 12-10-2005, 12:06 AM
-
Replies: 0
Last Post: 03-11-2005, 07:44 AM
-
By Devin in forum VB Classic
Replies: 0
Last Post: 11-27-2000, 05:13 PM
-
By P.Berniard in forum Enterprise
Replies: 0
Last Post: 10-09-2000, 05:56 AM
-
By Huber in forum Enterprise
Replies: 0
Last Post: 08-18-2000, 05:47 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