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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Html to Xml Conversion and viceversa

Html to Xml Conversion and viceversa

Scheduled Pinned Locked Moved ASP.NET
htmlxmlhelptutorial
5 Posts 2 Posters 1 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.
  • A Offline
    A Offline
    ayurhdfkl
    wrote on last edited by
    #1

    Please help me by sending the sample codes of how to convert html(Usually a normal html page in the current project) to xml and store it in sqlserver2005 as xmldatatype and then convert back to html as a different page when clicking a button.

    D 1 Reply Last reply
    0
    • A ayurhdfkl

      Please help me by sending the sample codes of how to convert html(Usually a normal html page in the current project) to xml and store it in sqlserver2005 as xmldatatype and then convert back to html as a different page when clicking a button.

      D Offline
      D Offline
      daniel__c
      wrote on last edited by
      #2

      You could try: http://www.codeplex.com/htmlagilitypack[^] There are some sample projects included, one of them will take a html page and return valid xml.

      A 1 Reply Last reply
      0
      • D daniel__c

        You could try: http://www.codeplex.com/htmlagilitypack[^] There are some sample projects included, one of them will take a html page and return valid xml.

        A Offline
        A Offline
        ayurhdfkl
        wrote on last edited by
        #3

        I tried that link, But didnt help me , mainly because my html page lies within my project, but in the link the method given is using html pages of some other domain. But thx for the reply

        D 1 Reply Last reply
        0
        • A ayurhdfkl

          I tried that link, But didnt help me , mainly because my html page lies within my project, but in the link the method given is using html pages of some other domain. But thx for the reply

          D Offline
          D Offline
          daniel__c
          wrote on last edited by
          #4

          You would need to download the project and check out some of the samples to confirm, but i believe that you can easily create an xml document from just a string (i.e. read the contents of your file into a string) containing html.

          A 1 Reply Last reply
          0
          • D daniel__c

            You would need to download the project and check out some of the samples to confirm, but i believe that you can easily create an xml document from just a string (i.e. read the contents of your file into a string) containing html.

            A Offline
            A Offline
            ayurhdfkl
            wrote on last edited by
            #5

            Yes, I have tried downloading those files.But there is no option for adding files from working project, it requires other webpages with IP addrss.

            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