Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-08-24 09:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (367 votes). Check out past polls.

    Notices?