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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:45:56+00:00 2026-05-27T21:45:56+00:00

There is a nice example on the Microsoft Website (Even vor .Net 4) Dim

  • 0

There is a nice example on the Microsoft Website (Even vor .Net 4)

Dim xmlDoc As XmlDataDocument = New XmlDataDocument(dataSet) 

Dim xslTran As XslTransform = New XslTransform 
xslTran.Load("transform.xsl")

Dim writer As XmlTextWriter = New XmlTextWriter("xslt_output.html", System.Text.Encoding.UTF8)

xslTran.Transform(xmlDoc, Nothing, writer)

http://technet.microsoft.com/en-us/query/8fd7xytc

No unfortunately XmlDataDocument is deprecated, but nobody seems to have a good answer on how to replace it in this situation?

  • 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-27T21:45:57+00:00Added an answer on May 27, 2026 at 9:45 pm

    You can use the following code.

    Use DataSet.GetXml() to get the xml as string and then create an XDocument by parsing the string:

    string xml = dataSet.GetXml();
    XDocument document = XDocument.Parse(xml);
    

    The setup of the transformation and its output is the same, except using XslCompiledTransform:

    XslCompiledTransform transform = new XslCompiledTransform();
    transform.Load("transform.xsl");
    XmlTextWriter writer = new XmlTextWriter("Output.xml", System.Text.Encoding.UTF8);
    

    And then you can use the XslCompiledTransform.Transform() overload that takes a reader as the first argument, which you can get from calling XDocument.CreateReader():

    transform.Transform(Document.CreateReader(), writer);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I studied the new MERGE Statement and there is a nice example for importing
There is an excellent code example on how to make nice jQuery Twitter style
How can I better write the following class? For example is there a nice
Is there a nice way to split a collection into n parts with LINQ?
Is there a nice way in the WinAPI to get a path relative to
Are there any nice libraries to render text in an image for Java? Java
Hi are there any nice videos on how to use exceptions in Delphi.
Hi are there any nice videos or other resources on how to use Interfaces
I got some binary files containing integers. Is there some nice Unix command, that
There are some nice free image to ASCII art conversion sites like this one:

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.