http://www.perlmonks.org?node_id=618225


in reply to xml_split - split huge XML documents into smaller chunks

I'm thinking about using this. Right now I've got a 1gig XML file with about 20,000 different "sections" that I would want to split into individual files. What I would like to be able to do is say split this XML file on this node, and name all of the generated XML files the id of that node...so here is an example... <Root> <section id=1> <section id=2> <section id=3> </Root> I would want the split to generate a 1.xml, 2.xml and 3.xml in this case. Probably a pretty easy modification, but I just thought I'd throw that out there for everyone.
  • Comment on Re: xml_split - split huge XML documents into smaller chunks

Replies are listed 'Best First'.