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

  • SEARCH
  • Home
  • 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 8838567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:01:50+00:00 2026-06-14T10:01:50+00:00

I have a html string and i want to parse this; <html xmlns="http://www.w3.org/1999/xhtml"> <head

  • 0

I have a html string and i want to parse this;

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title></title>
    </head>
    <body>
        <table>
            <tr class="MyColumn">
                <td colspan="2">
                    &nbsp;&nbsp;<b>Team List</b>
                </td>
            </tr>
            <tr valign="top">
                <td width="313">
                    &nbsp;<img src="weight.gif" width="11" height="10" alt="Encumbrance: 0" title="Encumbrance: 0">&nbsp;
                    <a href="Test.asp?action=ViewItemDetails&ItemTypeiD=1">Real Madrid</a>
                </td>
                <td align="right" width="140">
                </td>
            </tr>
            <tr valign="top">
                <td width="313">
                    &nbsp;<img src="weight.gif" width="11" height="10" alt="Encumbrance: 1" title="Encumbrance: 1">&nbsp;
                    <a href="Test.asp?action=ViewItemDetails&ItemTypeID=2">Barcelona</a>
                </td>
                <td align="right" width="140">
                </td>
            </tr>
            <tr class="MyColumn">
                <td colspan="2">
                    &nbsp;&nbsp;<b>Money List</b>
                </td>
            </tr>
            <tr valign="top">
                <td width="313">
                    &nbsp;<img src="weight.gif" width="11" height="10" alt="Encumbrance: 0" title="Encumbrance: 0">&nbsp;
                    <a href="Test.asp?action=ViewItemDetails&ItemTypeiD=1">$</a>
                </td>
                <td align="right" width="140">
                </td>
            </tr>
            <tr valign="top">
                <td width="313">
                    &nbsp;<img src="weight.gif" width="11" height="10" alt="Encumbrance: 1" title="Encumbrance: 1">&nbsp;
                    <a href="Test.asp?action=ViewItemDetails&ItemTypeID=2">€</a>
                </td>
                <td align="right" width="140">
                </td>
            </tr>            
        </table>
    </body>
    </html>

how can I do this;

Best Regards

  • 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. Editorial Team
    Editorial Team
    2026-06-14T10:01:51+00:00Added an answer on June 14, 2026 at 10:01 am
    HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
    doc.LoadHtml(html);
    
    var teams = doc.DocumentNode.SelectNodes("//td[@width='313']")
                    .Select(td => new TeamClass
                    {
                        TeamName = td.Element("a").InnerText,
                        TeamId = HttpUtility.ParseQueryString(td.Element("a").Attributes["href"].Value)["ItemTypeID"]
                    })
                    .ToList();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following: string html_string = http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=pharma; string html; html = new WebClient().DownloadString(html_string);
I have a HTML string and want to replace all links to just a
I have an HTML document as a string I want to search for a
I have some html extracted to a string var, and want to then use
I have a string (partly HTML) where I want to replace the string :-)
Original I want to parse a string of html code and add newlines after
I have HTML pages as String in Java and I need to extract the
I have a big HTML-string containing multiple child-nodes. Is it possible to construct a
I have 145064642 chars long HTML String which I am trying to print. When
Background: I have string of html with about 10 image tags that passes through

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.