wood burning stoves
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 13027
The most important SAX tip is -
Remember that the characters() method can be called any number of times while parsing a single text node.

I agree. Here's the link: http://aspose.com/file-tools
subject: Splitting of XML files using SAX
It's not a secret anymore!