Hi All,
I would like to split huge xml file. My final splitted files size should be less than 3 mb.
I tried to split xml file based on childnodes. But I don not get xml file with same node every time.
Advance thanks,
Darma
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Aug 5, 2014, 7:37 AM EDT
It will obviously depend on the structure of the XML file.
For example, if you had something like this with a size of 5MB:
then an obvious way to split the file into two would be like this:
Whether both of these files were now under 3MB would depend on the relative number of grandchild nodes in each one and perhaps also the relative complexity of those nodes.
So clearly it's not a simple matter to do this and it might be easier to make the split 'manually' on a 'trial and error' basis.
darma tejaRank #3,199 · 449 reputationPosted Aug 5, 2014, 7:45 AM EDT
darma tejaRank #3,199 · 449 reputationPosted Aug 6, 2014, 2:07 AM EDT
VulpesRank #55 · 29.2K reputationPosted Aug 6, 2014, 3:06 AM EDT