Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 83159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:43:47+00:00 2026-05-10T21:43:47+00:00

I have an html table <table border=0 width=100%> <tr class=headerbg> <th width=5%> No </th>

  • 0

I have an html table

  <table border='0' width='100%'>         <tr class='headerbg'>             <th width='5%'>                 No             </th>             <th width='30%'>                 Name             </th>             <th width='20%'>                 Department or Division             </th>             <th width='25%'>                 Email             </th>             <th width='20%'>                 Staff/Student             </th>         </tr>         <tr class='bg2'>             <td>                 1             </td>             <td>                 <strong><a class='searchLink2' href='tel_search.php?fore=Dave&amp;sur=Rumber'>Dave Rumber</a></strong>             </td>             <td>                 Medical School             </td>             <td>                 <a class='searchLink2' href='mailto:Dave.Rumber@Home.com'>Dave.Rumber@Home.com</a>             </td>             <td>                 Student&nbsp;             </td>         </tr>     </table> 

Sometimes there will be more than one row of people results. I would like to be able to go through each row and pluck out the name and e-mail information and do some other processing. Put the data in a datagrid, and possibly into a database.

I guess my question is how do I do this?

  string table = GetContents(buffer);    table = table.Replace('&nbsp;', '');   table = table.Replace('&', '&amp;');    XElement inters = XElement.Parse(table); 

I can put it into an XElement but I am not quite sure where to go from here!

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T21:43:48+00:00Added an answer on May 10, 2026 at 9:43 pm

    Here’s some freehand code that should get you started. Don’t do this in production, this is an educational demonstration only.

    List<XElement> rows = inters   .Descendants   .Where(x => x.Name == 'tr')   .Skip(1) //header   .ToList(); // // and now to turn rows into people List<Person> people = rows   //filter to anchor.  should be two.   .Select(r => r.Descendants.Where(a => a.Name = 'a'))   //Project each anchor pair into a Person   .Select(g => new Person()   {     Name = g.First().Value,     Email = g.Skip(1).First().Value   })   .ToList(); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 88k
  • Answers 88k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can see that property in the code part of… May 11, 2026 at 5:42 pm
  • Editorial Team
    Editorial Team added an answer Mr. Benages, I think setting IsHitTestVisible and Focusable to false… May 11, 2026 at 5:42 pm
  • Editorial Team
    Editorial Team added an answer If you looking for suggestions try Aptana or Eclipse May 11, 2026 at 5:42 pm

Related Questions

I have an application in Perl that reads in HTML based mark up and
I have a table containing cells with text of various lengths. It is essential
I have a user preference page in which the user can type in their
I'm just beinning basic data driven ASP.NET webforms design. I have the first part

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.