Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have below HTML string, I have a division tag which contains head class means it's header. And after that value contains.

HTML
<div class="skr head">
											<div class="skrcell">Name</div>
											<div class="skrcell">Experience</div>
											<div class="skrcell">Date</div>											
										</div>
										
						 <div class="skr">
								<div class="skrcell mtch">My Sql</div>
								<div class="skrcell">0.06 Years</div>
								<div class="skrcell">1st Jan 2020</div>								
							</div>
<div class="skr">
								<div class="skrcell mtch">My Sql</div>
								<div class="skrcell">5</div>
								<div class="skrcell">2nd Nov 2021</div>								
							</div>


Now I want to extract 0.06 Years and 5 from Experience cell and same time I have to update the new value after some manipulation on the same cell.

Similar, 1st Jan 2020 & 2nd Nov 2021 from Date Cell

Kindly Help. This I need to do in C#.

What I have tried:

I tried with finding Experience tag by IndexOf. But it's not working.
Posted
Updated 1-Dec-21 4:14am
v3

1 solution

Try this: Html Agility Pack[^] - it;'s available from NuGet: NuGet Gallery | HtmlAgilityPack 1.11.38[^]
 
Share this answer
 
Comments
Member 11052432 1-Dec-21 5:49am    
Can we do it with HTML Agility Pack?
OriginalGriff 1-Dec-21 6:26am    
Would I suggest it if you couldn't?
Member 11052432 1-Dec-21 6:32am    
Yes Please suggests.
OriginalGriff 1-Dec-21 6:54am    
Suggest what?
Dave Kreskowiak 1-Dec-21 10:44am    
LOL! Conversation is a skill that eludes some.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900