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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:30:45+00:00 2026-05-17T23:30:45+00:00

I presume this is possible? Basically i am receiving using LINQ (LINQ2Entities Entity Framework)

  • 0

I presume this is possible? Basically i am receiving using LINQ (LINQ2Entities Entity Framework) data and return it to an IQUERYABLE once i this data i need to transform it to XML in a Memory Stream and a physical file on the hard disk – streamwriter??

Does anyone know if this is possible?

Any help really appreciated

Do i need to use LINQtoXML to accomplish this?

Any examples or tutorials anybody knows of would be great.

Thanks again

EDIT

After a little bit of investigation i think i require a XML Serializer for LINQ2Entities / IQueryable??

  • 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-17T23:30:45+00:00Added an answer on May 17, 2026 at 11:30 pm

    LINQ to XML is probably the best choice. You can use functional construction to create an XML tree in a single statement, like:

    using (ContactEntities context = new ContactEntities()) {
        XDocument xml = new XDocument(
            new XElement("contacts",
                from contact in context.Contacts
                orderby contact.ContactId
                select new XElement("contact",
                    new XAttribute("contactId", contact.ContactId),
                    new XElement("firstName", contact.FirstName),
                    new XElement("lastName", contact.LastName))));
        xml.Save(yourStream);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this is possible to be done using javascript, and I presume I
I have a curl class, called Curl. Let's presume i have this code: $url
I can't see this in the docs, but I presume it's a solved problem.
I presume that 'rvalue' is just shorthand for return value . What does it
What is the highest number Python 2.6's x86 id() function can return? I presume
When using EasyMock to set expectations for a void method, is it possible to
I've noticed it's possible to return a string like Visible, Collapsed, Images/xyz.png or #FFB3D1
Possible Duplicate: Why is using a wild card with a Java import statement bad?
I am building a Java web app, using the Play! Framework . I'm hosting
Let's presume that I have string like '=&?/;#+%' to be a part of my

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.