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 split Large XML files into number of small files

How to split Large XML files into number of small files

Scheduled Pinned Locked Moved C#
helpcomxmltutorial
4 Posts 2 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.
  • R Offline
    R Offline
    Rizwan Bashir
    wrote on last edited by
    #1

    Hi I have list of files which are roughly 2GB in Size. When I load them they never comes back, So I need to split them, I searched and found this one http://www.codeproject.com/KB/XML/SplitLargeXMLintoSmallFil.aspx[^] but it has some missing declarations and functions which I asked the writer but no response so far. Is there any oen who can help me out with this issue. I need to split one file into maximum of 25 MB size. The xml File is very very simple like this <catalog> <product> <name>Product 1</name> </product> <product> <name>Product 2</name> </product> </catalog> any help would be highly appreciated. Best Regards Rizwan Bashir

    P 1 Reply Last reply
    0
    • R Rizwan Bashir

      Hi I have list of files which are roughly 2GB in Size. When I load them they never comes back, So I need to split them, I searched and found this one http://www.codeproject.com/KB/XML/SplitLargeXMLintoSmallFil.aspx[^] but it has some missing declarations and functions which I asked the writer but no response so far. Is there any oen who can help me out with this issue. I need to split one file into maximum of 25 MB size. The xml File is very very simple like this <catalog> <product> <name>Product 1</name> </product> <product> <name>Product 2</name> </product> </catalog> any help would be highly appreciated. Best Regards Rizwan Bashir

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Any way you like. Are your products in different departments? Or come from different vendors?

      R 1 Reply Last reply
      0
      • P PIEBALDconsult

        Any way you like. Are your products in different departments? Or come from different vendors?

        R Offline
        R Offline
        Rizwan Bashir
        wrote on last edited by
        #3

        They are from Different vendors but most of them have same XML structure with same parent tags ie catalog and product. under product there could be different number of values but overall structure is same. any ideas ? Best regards Rizwan Bashir

        P 1 Reply Last reply
        0
        • R Rizwan Bashir

          They are from Different vendors but most of them have same XML structure with same parent tags ie catalog and product. under product there could be different number of values but overall structure is same. any ideas ? Best regards Rizwan Bashir

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          I was hinting that you could make separate files for each department or vendor.

          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