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. Web Development
  3. ASP.NET
  4. Class in c# for Html Document

Class in c# for Html Document

Scheduled Pinned Locked Moved ASP.NET
csharphtmlxml
6 Posts 5 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.
  • P Offline
    P Offline
    papy boom
    wrote on last edited by
    #1

    hi everyBody, Does anyone Knows if there is a Class in C# to manipulate a Html document like the XmlDocumment Class in case of XML thanks in advance!!!

    G S T A 4 Replies Last reply
    0
    • P papy boom

      hi everyBody, Does anyone Knows if there is a Class in C# to manipulate a Html document like the XmlDocumment Class in case of XML thanks in advance!!!

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      If the page is well formed xhtml, you can treat it as xml (as it is xml). Many pages are not well formed at all, though. The best bet to manipulate that would be the String class... --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • P papy boom

        hi everyBody, Does anyone Knows if there is a Class in C# to manipulate a Html document like the XmlDocumment Class in case of XML thanks in advance!!!

        S Offline
        S Offline
        softty
        wrote on last edited by
        #3

        Yes , you can. User Interop Service . In visual studio you can add reference to mshtml.dll to import all COM / Interfaces, some of them will be converted into Good c# classes. Just "using mshtml" you can code all that web.. Happy programming.. love2code

        1 Reply Last reply
        0
        • P papy boom

          hi everyBody, Does anyone Knows if there is a Class in C# to manipulate a Html document like the XmlDocumment Class in case of XML thanks in advance!!!

          T Offline
          T Offline
          Tomas Petricek
          wrote on last edited by
          #4

          Hi, You can also take a look at this library: http://www.codeproject.com/dotnet/apmilhtml.asp[^]. I used it in one project and it works fine...

          Tomas Petricek (Microsoft C# MVP)
          www.eeeksoft.net | Photos | ASP.NET Multi-column layout control

          1 Reply Last reply
          0
          • P papy boom

            hi everyBody, Does anyone Knows if there is a Class in C# to manipulate a Html document like the XmlDocumment Class in case of XML thanks in advance!!!

            A Offline
            A Offline
            Andy Brummer
            wrote on last edited by
            #5

            You should be able to use the SGML Reader[^]

            P 1 Reply Last reply
            0
            • A Andy Brummer

              You should be able to use the SGML Reader[^]

              P Offline
              P Offline
              papy boom
              wrote on last edited by
              #6

              great i got it!!!! in fact we can use XmlDocument to manipulate html if it is valid by creating an XMLdocument as an exemple stringHtml=""+stringHtml+"" after that we load string html in XmlDocument!! good .Nettttting!!!!!

              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