Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How To convert Xml to Html

How To convert Xml to Html

Scheduled Pinned Locked Moved C#
xmlhtmltutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Inam
    wrote on last edited by
    #1

    How can i convert an xml file to html file. Actually i want to provide the xml file and xsl file to the function and it will give me a file with .htm or .html extension. Thanx in advance Regards minamkhan Inam

    H H 2 Replies Last reply
    0
    • I Inam

      How can i convert an xml file to html file. Actually i want to provide the xml file and xsl file to the function and it will give me a file with .htm or .html extension. Thanx in advance Regards minamkhan Inam

      H Offline
      H Offline
      Hojtha Karlsson
      wrote on last edited by
      #2

      Take a look at this example: http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=64 M:mad:tti:mad:s

      M 1 Reply Last reply
      0
      • I Inam

        How can i convert an xml file to html file. Actually i want to provide the xml file and xsl file to the function and it will give me a file with .htm or .html extension. Thanx in advance Regards minamkhan Inam

        H Offline
        H Offline
        Heath Stewart
        wrote on last edited by
        #3

        See the System.Xml.Xsl.XslTransform class documentation in the .NET Framework SDK. It includes examples, including a sample method that does just that. You still need to construct your XSLT. A good, comprehensive resource for that is on MSDN at http://msdn.microsoft.com/library/en-us/xmlsdk30/htm/xmrefxsltreference.asp[^].

        Microsoft MVP, Visual C# My Articles

        1 Reply Last reply
        0
        • H Hojtha Karlsson

          Take a look at this example: http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=64 M:mad:tti:mad:s

          M Offline
          M Offline
          Mazdak
          wrote on last edited by
          #4

          http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=64[^] Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups