Click here to Skip to main content
15,914,594 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: IT professionals Pin
Paul Conrad28-Jun-08 8:49
professionalPaul Conrad28-Jun-08 8:49 
GeneralRe: IT professionals Pin
Christian Graus28-Jun-08 12:25
protectorChristian Graus28-Jun-08 12:25 
GeneralRe: IT professionals Pin
Paul Conrad28-Jun-08 12:33
professionalPaul Conrad28-Jun-08 12:33 
AnswerRe: IT professionals Pin
Vasudevan Deepak Kumar6-Jun-08 2:28
Vasudevan Deepak Kumar6-Jun-08 2:28 
GeneralRe: IT professionals Pin
Ashfield6-Jun-08 5:00
Ashfield6-Jun-08 5:00 
QuestionSubreportProcessing event handler of ReportViewer control not firing.. Please help Pin
Jagadeeshs5-Jun-08 4:28
Jagadeeshs5-Jun-08 4:28 
QuestionAttaching event lisener with arguments. Pin
24891284-Jun-08 21:18
24891284-Jun-08 21:18 
QuestionHow to parse a value from HTML? Pin
hifiger20044-Jun-08 18:59
hifiger20044-Jun-08 18:59 
Hi Guys,

Is there a quicker way of parsing a value from HTML code?
How can I do it programmatically to parse a particular labels and value?

example:
your payment1: 300.00 your discount1: 0.05
your payment2: 300.00 your discount2: 0.05
your payment3: 300.00 your discount3: 0.05
...

Based on the example, how can I parse all "your payment" and "your discount" labels together with their value?

I am thinking of using regex but I don't know how to begin with it.


Sample HTML Source:

<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=utf-8">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Lastminute Booking</title>
<style >
body {
font-family: Verdana,arial,helvetica,sans-serif;
font-size: 10px;
color: Black;
text-decoration : none;
}
.sectionLabel
{
font-family: Verdana,arial,helvetica,sans-serif;
font-size: 12px;
font-weight: bold;
color: Navy;
text-decoration : none;
}
.fieldLabel
{
font-family: Verdana,arial,helvetica,sans-serif;
font-size: 10px;
font-weight: bold;
color: Green;
text-decoration : none;
}
.fieldValue
{
font-family: Verdana,arial,helvetica,sans-serif;
font-size: 10px;
font-weight: bold;
color: #FF0099;
text-decoration : none;
}
</style>
</head>
<body>

<table width="100%">
<tr>
</td>
<td class ="fieldlabel" style='width; 150px; height: 13px;'valign='top'>
Your Payment1:
</td>
<td class="fieldValue" style=height 13px'>
300.00
<td>
<td class="fieldLabel" style='width': 150px;height: 13px;'valign='top'>
Your Discount1:
</td>
<td class="fieldvalue" style='height': 13px'>
0.05
</td>
</tr>
<tr>
</td>
<td class ="fieldlabel" style='width; 150px; height: 13px;'valign='top'>
Your Payment2:
</td>
<td class="fieldValue" style=height 13px'>
300.00
<td>
<td class="fieldLabel" style='width': 150px;height: 13px;'valign='top'>
Your Discount2:
</td>
<td class="fieldvalue" style='height': 13px'>
0.05
</td>
</tr>
<tr>
</td>
<td class ="fieldlabel" style='width; 150px; height: 13px;'valign='top'>
Your Payment3:
</td>
<td class="fieldValue" style=height 13px'>
300.00
<td>
<td class="fieldLabel" style='width': 150px;height: 13px;'valign='top'>
Your Discount3:
</td>
<td class="fieldvalue" style='height': 13px'>
0.05
</td>
</tr>
</table>
</body>
</html>

hifiger2004
AnswerRe: How to parse a value from HTML? Pin
Vasudevan Deepak Kumar4-Jun-08 20:19
Vasudevan Deepak Kumar4-Jun-08 20:19 
AnswerRe: How to parse a value from HTML? Pin
Ashfield4-Jun-08 21:26
Ashfield4-Jun-08 21:26 
GeneralRe: How to parse a value from HTML? Pin
hifiger20044-Jun-08 23:46
hifiger20044-Jun-08 23:46 
GeneralRe: How to parse a value from HTML? Pin
Ashfield5-Jun-08 0:23
Ashfield5-Jun-08 0:23 
QuestionContinue timer from the place it stopped in JavaScript Pin
TheAteist4-Jun-08 9:06
TheAteist4-Jun-08 9:06 
AnswerRe: Continue timer from the place it stopped in JavaScript Pin
Vasudevan Deepak Kumar4-Jun-08 20:21
Vasudevan Deepak Kumar4-Jun-08 20:21 
QuestionSession value is mixed with other user's session Pin
metbinu2003@yahoo.com4-Jun-08 4:12
metbinu2003@yahoo.com4-Jun-08 4:12 
AnswerRe: Session value is mixed with other user's session Pin
Herman<T>.Instance8-Jun-08 22:23
Herman<T>.Instance8-Jun-08 22:23 
Questionhow to Convert Text into Image in javascript? Pin
Member 31551514-Jun-08 0:44
Member 31551514-Jun-08 0:44 
AnswerRe: how to Convert Text into Image in javascript? Pin
Christian Graus4-Jun-08 4:50
protectorChristian Graus4-Jun-08 4:50 
AnswerRe: how to Convert Text into Image in javascript? Pin
ayaxian5-Jun-08 13:26
ayaxian5-Jun-08 13:26 
QuestionStoring string variable with double quote Pin
hifiger20044-Jun-08 0:07
hifiger20044-Jun-08 0:07 
AnswerRe: Storing string variable with double quote Pin
Christian Graus4-Jun-08 4:51
protectorChristian Graus4-Jun-08 4:51 
QuestionC# web appliaction to PDF using iTextSharp Pin
Dhilipkumar3-Jun-08 22:47
Dhilipkumar3-Jun-08 22:47 
AnswerRe: C# web appliaction to PDF using iTextSharp Pin
Christian Graus4-Jun-08 4:52
protectorChristian Graus4-Jun-08 4:52 
QuestionRedirect to next page. Pin
Moghan3-Jun-08 22:35
Moghan3-Jun-08 22:35 
AnswerRedirect to next page. Pin
Moghan3-Jun-08 22:42
Moghan3-Jun-08 22:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.