• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Split Big XML into smaller ones by size

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everyone,

Need your valuable suggestions on splitting big XML file dynamically in Java into smaller ones by size.

Before starting parsing of the xml we need to check the file size and should split the file so that each file is not more then 10 MB.

Also the XML should be well formed.

If you are aware of any better framework / better way of doing this please let me know.

Thanks,
Ganesh
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's easy enough to split a file into smaller pieces, but splitting an XML file into smaller pieces which are themselves well-formed XML files? Can't be done.

But perhaps your XML documents have some specific features which allow you to split them into a set of sub-documents which, with little modification, could be made into well-formed XML files?

As for doing the split before you start parsing, I wouldn't recommend that. If your idea of a split is even possible, it should be done by software which understands the rules of XML, and that means a parser.
 
GaneshSg Sundaresan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Paul.

Are you aware of any framework that does that?

Thanks,
Ganesh
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ganesh,

i am also having same requirement . did you get information like how we can do it ?

Thanks,
Hari

reply
    Bookmark Topic Watch Topic
  • New Topic