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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:37:06+00:00 2026-05-27T21:37:06+00:00

I have an XML file taken from an RSS feed, saved locally, and I

  • 0

I have an XML file taken from an RSS feed, saved locally, and I simply want to display the contents of this XML file (without the tags) inside a textbox or a textblock – something to just display it to the user.

I have already written a method which loops through the whole XML file getting each section of information from the relevant tags and storing it all into a list. Is there any simple way for me to either just display the contents of my newly generated list inside a textbox? Or even just a method of displaying the full XML file itself without the tags would be very much appreciated.

Many 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-05-27T21:37:06+00:00Added an answer on May 27, 2026 at 9:37 pm

    You can use the following code to add each item from your List to the TextBlock. (You said you’ve already removed the tags from this list, correct?)

    XAML:

    <TextBlock x:Name="rssDisplayer" />
    

    C#:

    private void displayListInTextBlock(List<Item> items)
    {
        foreach (Item item in items)
        {
            rssDisplayer.Text += item.ToString() + Environment.NewLine;
        }
    }
    

    in Item.cs, you need to override ToString(). Because you haven’t told us about your Item class, I’ll make a rough guess here:

    public class Item
    {
        private string content; //just an example
        public override String ToString()
        {
            return content;
        }
    }
    

    If, however, you need help with removing the XML tags, take a look at this StackOverflow answer.

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

Sidebar

Related Questions

I have an XML file from which I am parsing some content to display
I have this XML file, from which I'd like to count the number of
I have a XML file that goes like this... (the XML file was taken
I have an XML file that reads like this <abc> <ab>value</ab> <aa>time</aa> <ac>money</ac> </abc>
I have an XML file that I'm trying to read from here , and
I have a QTreeWidget that reads data from an XML file. If at any
I have this problem where all URLs like context/path/file/anything/that/follows becomes context/path/file.php/anything/that/follows or context/path/file.xml/anything/that/follows .
I have a function that takes 2 parameters : 1 = XML file, 2
I have xml file with such structure: ... <outer> ... <inner/> ... </outer> ...
What is the easiest way to convert xml to html? I have xml file

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.