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. .NET (Core and Framework)
  4. In C# what is the best method to parse large XML Documents(1GB size)...?

In C# what is the best method to parse large XML Documents(1GB size)...?

Scheduled Pinned Locked Moved .NET (Core and Framework)
questioncsharpxmlhelp
3 Posts 3 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
    sivasss
    wrote on last edited by
    #1

    Hi Friends, Can any body help me what is the best method parse large XML File having size of 1GB.If i use XML Document and XML Reader ,result being very late.... Your answers are welcme Thanks with best regards, sivaram

    V M 2 Replies Last reply
    0
    • S sivasss

      Hi Friends, Can any body help me what is the best method parse large XML File having size of 1GB.If i use XML Document and XML Reader ,result being very late.... Your answers are welcme Thanks with best regards, sivaram

      V Offline
      V Offline
      VenkatFor NET
      wrote on last edited by
      #2

      For XML files of that size, XMLDocument or DOM is not suitable. XMLReader should give better performance than the former one. In case if you are using string manipulations, consider StringBuilder object also in place String. (Just a thought)

      Bhaskara

      1 Reply Last reply
      0
      • S sivasss

        Hi Friends, Can any body help me what is the best method parse large XML File having size of 1GB.If i use XML Document and XML Reader ,result being very late.... Your answers are welcme Thanks with best regards, sivaram

        M Offline
        M Offline
        malk0lm
        wrote on last edited by
        #3

        If you use the XML libraries in C# does it not work for your large file? I've never tried anything with a file that big.

        ɹǝʌo ɹoʇıuoɯ ɹnoʎ dılɟ sıɥʇ pɐǝɹ ʇ,uɐɔ noʎ ɟı

        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