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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:05:35+00:00 2026-06-05T12:05:35+00:00

I would like to write something in C# that takes Xml and converts it

  • 0

I would like to write something in C# that takes Xml and converts it to plain text.

<note>
    <to>Tove</to>
    <from>Jani</from>
    <heading>Reminder</heading>
    <body>Don't forget me this weekend!</body>
</note>

Would become:

To Tove
From Jani
Heading Reminder
Body don't forget me this weekend!

Is there any thing already like this? and how would i go about doing this?

This is just ruffly the idea im going for still needs lots of work:

private void dataGridViewResult_SelectionChanged(object sender, EventArgs e)
        {
            if (this.dataGridViewResult.SelectedRows.Count > 0)
            {
                XslCompiledTransform xslt = new XslCompiledTransform();
                xslt.Load("SQL"); //.xml

                xslt.Transform("SQL","SQL"); //.xml, .html
                this.richTextBoxSQL.Text = this.dataGridViewResult.SelectedRows[0].Cells["SQL"].Value.ToString();
            }
        }
  • 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-05T12:05:37+00:00Added an answer on June 5, 2026 at 12:05 pm

    Something like this:

        XmlDocument doc = new XmlDocument();
        doc.LoadXml(your text string);
    
        StringBuilder sb = new StringBuilder();
        foreach (XmlNode node in doc.DocumentElement.ChildNodes)
        {
            sb.Append(char.ToUpper(node.Name[0]));
            sb.Append(node.Name.Substring(1));
            sb.Append(' ');
            sb.AppendLine(node.InnerText);
        }
    
        Console.WriteLine(sb);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to write an if statement that will do something base on
I would like to write a method in ruby that takes a class with
I would like to write a python script that takes a bunch of swf
I would like to write a script that takes one argument that might look
Am working in VC++ 2008 (express) and I would like to write something in
I would like to be able to write something like char f(char); vector<char> bar;
Would you write something like: enum XYZ_TYPE {X=1, Y=2, Z=3}; I saw it and
I would like to write a cross-platform function in C++ that contains system calls.
So I have a a text file that looks something like this: public >ret
I would like to write a java script which: When the page loads takes

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.