Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: xml_split - split huge XML documents into smaller chunks

by mirod (Canon)
on Feb 07, 2009 at 10:17 UTC ( #742100=note: print w/ replies, xml ) Need Help??


in reply to Re^2: xml_split - split huge XML documents into smaller chunks
in thread xml_split - split huge XML documents into smaller chunks

Sorry I did not see this follow-up. Yes you can. In recent versions of xml_split, the -g or the -s options should give you what you need:

  -s <size>
       generates files of (approximately) <size>. The 
       content of each file is enclosed 
       in a new element ("xml_split::root"), so itís 
       well-formed XML.  The size can be given in bytes,
       Kb, Mb or Gb.

   -g <nb>
       groups <nb> elements in a single file. The content
      of each file is enclosed in a new element 
     ("xml_split::root"), so itís well-formed XML.


Comment on Re^3: xml_split - split huge XML documents into smaller chunks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://742100]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2015-07-06 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls