Re: Split file by contents



howa wrote:
hello,

how to split a large XML file without a XML parser (since a few GB
data)

e.g.

<book>
<title></title>
<author></author>
...
</book>

if matched `</book>`, splitting occur.

any command/tools can be used?

thanks.


csplit

FR
.



Relevant Pages

  • Split file by contents
    ... how to split a large XML file without a XML parser (since a few GB ... if matched ``, splitting occur. ... any command/tools can be used? ...
    (comp.os.linux.misc)
  • Re: file as a directory
    ... >> Do you really want to put an XML parser and all the associated code ... >AND assume the XML file is correct... ... Clearly, this is either a userspace job (-> FUSE, hint, hint) or nothing at ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: read and parsing an XML file using the content
    ... Try a stream-based XML parser like expat. ... This reads the XML file as a stream of tags and content, calling your functions when it encounters things that you're interested in. ... It shouldn't use up as much memory as DOM-like XML parsers, which read the whole file into RAM before they parse it. ...
    (comp.lang.php)
  • Re: XML Parsing and Database Activity
    ... I have a XML file supplied by one of our content providers, that i have to parse and import into a database. ... Im kind of at a junior to medium level experience in Java, but am having trouble deciding/choosing which XML Parser to use for this strange document. ...
    (comp.lang.java.programmer)
  • Problem in using MS XML DOM parser
    ... In my application I have to read and append XML files. ... XML parser for that. ... // Walk through children of document element ... Please tell me also how can I append XML file using MSXML parser. ...
    (microsoft.public.vc.language)