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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:04:34+00:00 2026-05-26T02:04:34+00:00

I am currently making a website that returns quite a few xml types and

  • 0

I am currently making a website that returns quite a few xml types and some of them are quite big. I don’t really need to resort to xml serialization because it would be a bit slow in my case and some class fields must be only partially serialized depending on the context. I am using asp .net mvc 3.0 and .net.

So I imagined it would be great if I could use a technology similar to a view engine to generate those xml files. Maybe I could even use the existent razor view engine for this but I haven’t seen anything remotely similar.

My question is if something like this exists or if I can use the existing technology to generate xml files in such a manner.

  • 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-26T02:04:35+00:00Added an answer on May 26, 2026 at 2:04 am

    You don’t need a technology “similar to Razor”… you can just use Razor 😉

    You just need to specify the content type in the Razor view (and remove the Layout if necessary):

    @using MvcApplication1.Models;
    @model IEnumerable<Product>
    @{
        Layout = "";
        Response.ContentType = "text/xml";
    }
    <?xml version="1.0" ?>
    <products>
        @foreach (Product p in Model)
        {
            <product id="@p.Id">
                <name>@p.Name</name>
            </product>
        }
    </products>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently making some system that will gather statistical reports from different sites, for
I'm making a program that connects to a website and downloads XML from it.
I am currently making an app and website. Is there a system around that
i'm currently making search engine for a website content (only for searching within that
I'm making a bookmarklet for a website that will need to parse multiple pages.
I'm making a website that is in Croatian, and I need to use signs
I have a question about tables in MySQL. I'm currently making a website where
I am currently building an making my new website. It uses one page and
I am currently in the process of making a new ASP.net MVC website, and
I'm currently making a GWT project where I display some HTML in a RichTextArea

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.