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

I have a problem getting the data from a string.

This is my string like this....

XML
<![CDATA[<p style='color:#999;'>From <b>IBM</b> Intern (Current Employee) &mdash; Rating 4.0 out of 5 &mdash; Thu, 15 May 2014</p>
<p><b>Pros</b><br/>
IBM has good hours and good culture. Each team is different so you might have a really good or really bad time, or get interesting or mundane work (as an intern)</p>
<p><b>Cons</b><br/>
Work and responsibility depends on the team you are in. Quite a big company and thus it is political. Pay isn't top gear and reputation is only strong in some areas</p>
<p><a href='http://www.glassdoor.com/Reviews/Employee-Review-IBM-RVW4233331.htm'><b>Add a Comment</b></a></p>
]]>


I want to only "Rating 4.0 out of 5 " and "Thu, 15 May 2014". I want to assign these two strings data into another two strings. Like string rating="Rating 4.0 out of 5"; and string d=Thu, 15 May 2014.

I want to read thousands of large amount of strings.

Please give me the soluation...
Thank you
Posted

1 solution

Take a look at Html Agility Pack[^]. It is a very handy utility.
 
Share this answer
 
Comments
NagaRaju Pesarlanka 19-May-14 6:21am    
This is free source?
How to use?
dan!sh 19-May-14 7:19am    
Yes it is free. It is similar to XPath.
NagaRaju Pesarlanka 19-May-14 7:39am    
Is there any alternative, Please tell me.....

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