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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:26:31+00:00 2026-06-13T06:26:31+00:00

I keep getting this error randomly when trying to read ARSTECHNICA RSS feed. I

  • 0

I keep getting this error randomly when trying to read ARSTECHNICA RSS feed. I get the following error:

System.Xml.XmlException: ”, hexadecimal value 0x10, is an invalid
character. Line 96, position 1129.

I know that it is because of invalid charatercs in XML and it needs to be removed. I did look at this for removing invalid charaters.

    XmlReader readXML;
    readXML = XmlReader.Create(URL);
    SyndicationFeed News= SyndicationFeed.Load(readXML);
    readXML.Close();
    return News;

I ‘m not sure how to remove the invalid characters from the RSS feed. Any suggestions?

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. Editorial Team
    Editorial Team
    2026-06-13T06:26:32+00:00Added an answer on June 13, 2026 at 6:26 am

    You could try to load the rss feed as a string, remove the invalid characters and load as a news feed. Hope that helps:

    HttpWebRequest httpWebRequest =  
    (HttpWebRequest)WebRequest.Create("http://feeds.arstechnica.com/arstechnica/index");
    HttpWebResponse httpWebesponse = (HttpWebResponse)httpWebRequest.GetResponse();
    
    Stream dataStream = httpWebesponse.GetResponseStream();
    StreamReader streamreader = new StreamReader(dataStream, Encoding.UTF8);
     string response = streamreader.ReadToEnd();
    streamreader.Close();
    
    response = response.Replace((char)0x10, ' ');
    
    XmlTextReader reader = new XmlTextReader(new System.IO.StringReader(response));
    reader.Read();
    
    SyndicationFeed News = SyndicationFeed.Load(reader);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting this error randomly: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request.
We keep getting this error randomly in our web application. System.Data.SqlClient.SqlException: A network-related or
Okay this is werid, i keep getting the error, randomly. ValueError: matrix must be
Keep getting this error after inserting a subdatasheet into a query and trying to
I keep getting this error System.Web.HttpException was unhandled by user code Message=Validation of viewstate
I keep getting this error when trying to delete a record from my table.
I keep randomly getting this error within my Drupal site. Only way to resolve
I keep getting this error mesage when trying to add a breakpoint in gdb.
I keep getting this error when making the program as given below: using System;
I keep getting this error when trying to configure the upload directory with Apache

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.