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 4046238
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:32:14+00:00 2026-05-20T13:32:14+00:00

I have a string that has a format like this: <b>*GTPersonnel</b><table border=1><tr><td>&#115;&#115;&#50;&#49;&#49;&#49;</td></tr></table> I want

  • 0

I have a string that has a format like this:
<b>*GTPersonnel</b><table border=1><tr><td>&#115;&#115;&#50;&#49;&#49;&#49;</td></tr></table>

I want to process those data that is between <td> tags and replace each occurrence of &#Blah; with its equal character so for example in &#115; I want it to be replaced by just the character a because 115 is the character code for that.

I can loop through the whole string, find &# index, find ; index, read the character in between and find the Character for that code… well it is a bit algorithmic… I was wondering if there are better things with .NET that I can utilize for this puprpose.

  • 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-05-20T13:32:14+00:00Added an answer on May 20, 2026 at 1:32 pm

    If you use XHTML you can simple modify the EntityHandling property in XmlTextReader object to tell it to handle character entities automatically:

    XmlTextReader reader = new XmlTextReader( "temp.xml" );
    reader.EntityHandling = EntityHandling.ExpandCharEntities;
    

    Then you can read your file with XmlTextReader or with the help of LINQ to XML. For example, if you have xml file like this:

    <?xml version="1.0" encoding="utf-8" ?>
    <document>
        <td>&#115;&#115;&#50;&#49;&#49;&#49;</td>
    </document>
    

    And you write the code below above and next couple of strings:

    while ( reader.Read() )
        if ( reader.NodeType == XmlNodeType.Text )
            Console.WriteLine( reader.Value );
    

    You get ss2111 value on your console window.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a variable that has this string: <DIV><SPAN style=FONT-FAMILY: Tahoma; FONT-SIZE: 10pt>[If the
I have certain code that I want to optimize. It looks like this: function
I have a database in my Android app that has dates formatted like this:
I have an xml document that has 3 elements in this format: <Codes> <Code>
I have a string that has several date values in it, and I want
I have very large text files that has the format below: items=item1|item2|item3|item4&ids=18|117|34|315&locations=5|26|9|12#Characteristic_1#Describe Characteristic_1#http://example.com items=item1|item2|item3|item4&ids=18|117|34|315&locations=5|26|9|12#Characteristic_2#Describe
I have a string that looks like L\4\ and want to parse it into
I have an XML file that has a set of entries like this: <attr
I have a string that I want to parse using regex. It has the
I have an Entity Frameworks POCO that has a property defined like this: [RegularExpression(ValidationHelper.RegularExpressionForDateOnly)]

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.