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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:14:21+00:00 2026-06-04T19:14:21+00:00

I do not have right to write on a disk. I want to create

  • 0

I do not have right to write on a disk. I want to create a string which consist of xml file.

I do not want to give filename because I have no permissions. If I simply append xml to string is it working? Is there any better way to do it.

XmlTextWriter xmlWriter = new XmlTextWriter(fileName, Encoding.UTF8);

  • 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-04T19:14:23+00:00Added an answer on June 4, 2026 at 7:14 pm

    Code Input :

    var rss = new XElement("rss", new XAttribute("version", "2.0"));
    var channel = new XElement("channel",
        new XElement("title", "Liftoff News"),
        new XElement("link", "http://liftoff.msfc.nasa.gov/"),
        new XElement("description", "Liftoff to Space Exploration.")
        );
    rss.Add(channel);
    channel.Add(new XElement("item",
        new XElement("title", "Star City"),
        new XElement("link", "http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp"),
        new XElement("description", @"
            How do Americans get ready to work with Russians aboard the
            International Space Station? They take a crash course in culture, language
            and protocol at Russia's Star City.
            "),
        new XElement("pubDate", DateTime.UtcNow),
        new XElement("guid", "http://liftoff.msfc.nasa.gov/2003/06/03.html#item573")
    ));
    
    var text = rss.ToString();
    

    Text Output:

    <rss version="2.0">
      <channel>
        <title>Liftoff News</title>
        <link>http://liftoff.msfc.nasa.gov/</link>
        <description>Liftoff to Space Exploration.</description>
        <item>
          <title>Star City</title>
          <link>http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp</link>
          <description>
              How do Americans get ready to work with Russians aboard the
              International Space Station? They take a crash course in culture, language
              and protocol at Russia's Star City.
          </description>
          <pubDate>2012-05-30T10:21:14.014Z</pubDate>
          <guid>http://liftoff.msfc.nasa.gov/2003/06/03.html#item573</guid>
        </item>
      </channel>
    </rss>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have xml file in string. I do not have right to write on
Some items don't have write access right due to workflow state write not being
$ javac InitInt.java InitInt.java:7: variable right might not have been initialized InitInt(){} ^ 1
should be simple right? but have not found any anwsers :
This should work right? I have not a clue as to why it's not.
I am not sure if i have chosen the right words to ask the
I have looked for this in several places but not necessarily found the right
Not sure if I'm phrasing my question right, but I have the code below.
Im not sure if endian is the right word but.. I have been parsing
Im not sure if I'm doing this right. I have an action that I

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.