File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Splitting of XML files using SAX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Splitting of XML files using SAX" Watch "Splitting of XML files using SAX" New topic

Splitting of XML files using SAX

Fred Rogers

Joined: Apr 20, 2007
Posts: 7
Hi guys,

I have big xml files and I need to split tthat files into multiple xml files. Since DOM has the memory constraint I guess I'll go with SAX. And also I need to maintain well formedness of xml files.

Any tips or links that can be helpful.


SCJP 1.5
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
The most important SAX tip is -
Remember that the characters() method can be called any number of times while parsing a single text node.

Don't get me started about those stupid light bulbs.
subject: Splitting of XML files using SAX
It's not a secret anymore!