Prasanna Yelsangikar
Prasanna Yelsangikar

Reputation: 1009

How to convert XML to HTML using c# dynamically

How to upload XML file and generate Html file without XSLT file using C#...

Upvotes: 1

Views: 2717

Answers (2)

Christopher Logel
Christopher Logel

Reputation: 123

The question is a little open-ended, but you might consider just writing a program that:

  1. Deserializes the XML.
  2. Having read in the XML, format the text.
  3. Output the text using the standard in/out libraries in C#.

I don't know if this is the most efficient solution -- but I think it would work.

Upvotes: 1

George Duckett
George Duckett

Reputation: 32428

LINQ to XML is one option. See also: Generating HTML using LINQ

Upvotes: 3

Related Questions