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

  • Home
  • SEARCH
  • 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 6012933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:28:32+00:00 2026-05-23T02:28:32+00:00

I am going to be translating an XML document into another XML document based

  • 0

I am going to be translating an XML document into another XML document based on an eXtensible Style Language Transformation. Where can I find good tutorials about how to do this in .NET?

I have found some stuff about how to do it using open source tools. But what about the .NET framework? Just a couple of other quick questions…

  1. Could somebody please give me a quick and dirty explanation of the XSLT order of operations? I am still a little confused about what happens?

  2. Are there any explicit .NET tools for working with XSLTs? I know that when working with XSLTs, XSDs, and XML files you get a little XML drop down list on the main menu of Visual Studio .NET. I guess that is Ok for now, but it would be nice to know if I had other options.

  3. I am not going to be actually transforming files… Well, I guess the Extensible Stylesheet will be a file, but I want to import an XML string, transform it to another XML string, and then through that out to a view in the MVC design pattern. How can I do that?

  • 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-23T02:28:32+00:00Added an answer on May 23, 2026 at 2:28 am

    1) could somebody please give me a quick and dirty explanation of the XSLT order of operations? I am still a little confused about what happens?

    From the point of view of usage, there’s only one operation: you grab some input, and the XSLT engine transforms it into an output.

    2) are there any explicit .Net tools for working with XSLT’s? I know that when working with XSLT’s, XSD’s, and XML files you get a little XML drop down list on the main menu of Visual studio .net. I guess that is ok for now, but it would be nice to know if I had other options.

    With the XslCompiledTransform you can apply your XSL transformations.

    3) I am not going to be actually transforming files… Well, I guess the Extensible Style sheet will be a file, but I want to import a xml string, transform it to another xml string, and then through that out to a view in the MVC design pattern. Anybody every try anything crazy like that before? If so, any advice?

    The XslCompiledTransform class I mentioned above can work directly on streams, or XmlReader and XmlWriter objects, so you can do the whole thing in memory, without any temporary files.

    Here’s a basic example:

    // Load the XSL transform from a file
    var transform = new XslCompiledTransform();
    transform.Load("foo.xslt");
    
    // This is your input string
    string input = /* blah */;
    
    // Make an XML reader out of the string
    XmlReader inputXmlReader;
    using(var inputReader = new StringReader(input))
    {
        inputXmlReader = XmlReader.Create(inputReader);
    }
    
    using(writer = new StringWriter()) // prepare a string writer for the output
    {
        // if you need to pass arguments to the XSLT...
        var args = new XsltArgumentList();
        args.AddParam("key", "urn:xml-namespace-of-key", "value");
    
        // Apply the transformation to the reader and write it in our string writer
        transform.Transform(inputXmlReader, args, writer);
    
        // Retrieve the output string from the string writer
        return writer.GetStringBuilder().ToString();
    }
    

    Where can I find good tutorials about how to do this (…)?

    If you want to learn the XSLT language itself, you can check out this previous question: “How to get started with xslt-transformations?”.

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

Sidebar

Related Questions

I’m having a problem with translating T-SQL query into Nhibernate query – or writing
Going through the tutorial here: http://www.asp.net/mvc/tutorials/iteration-4-make-the-application-loosely-coupled-cs I've noticed that they are passing the EF
I'm trying to translate an app into Japanese and everything was going smoothly until
Going back to my previous question on OCSP, does anybody know of reliable OCSP
Going through some of my older Delphi projects and upgrading them to D2009, as
Going through Javascript documentation, I found the following two functions on a Javascript object
Going from the example given here... http://ericswann.org/blog/archive/2009/04/06/linq-to-sql-datacontext-provider-revisited.aspx I'm trying to use the datacontext between
Going to http://www.example.com/node/NID/edit , where NID is any valid nid referring to a node
Going round in circles here i think. I have an activity called Locate; public
Going mad now. I have a MVC solution that i've upgraded from MVC 1

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.