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 can i acessthe xml file in c#?

how can i acessthe xml file in c#?

Scheduled Pinned Locked Moved C#
questioncsharpxml
5 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.
  • S Offline
    S Offline
    samidhas
    wrote on last edited by
    #1

    i want to see a whole xml file in the richtext box. how can i see it or access it?

    P B 2 Replies Last reply
    0
    • S samidhas

      i want to see a whole xml file in the richtext box. how can i see it or access it?

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Use XmlDocument to load it - and then bind the text to the textbox.

      Deja View - the feeling that you've seen this post before.

      My blog | My articles

      S 1 Reply Last reply
      0
      • P Pete OHanlon

        Use XmlDocument to load it - and then bind the text to the textbox.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

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

        plzzzzzz explain through code , i dint get you thanks

        J 1 Reply Last reply
        0
        • S samidhas

          plzzzzzz explain through code , i dint get you thanks

          J Offline
          J Offline
          J a a n s
          wrote on last edited by
          #4

          Check this article http://www.codeproject.com/KB/cpp/myXPath.aspx[^] Note: Even though the article is classified under C++; it is done in C# only.

          *jaans

          1 Reply Last reply
          0
          • S samidhas

            i want to see a whole xml file in the richtext box. how can i see it or access it?

            B Offline
            B Offline
            BoneSoft
            wrote on last edited by
            #5

            Google "reading text file in C#", this is basic IO. It's a text file, look at the StreamReader, (or even the XmlTextReader if you really need it, though it doesn't sound like you do).


            Try code model generation tools at BoneSoft.com.

            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