This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

Splitting of XML files using SAX

Fred Rogers
Greenhorn

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.

Thanks.


SCJP 1.5
William Brogden
Author and all-around good cowpoke
Rancher

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

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Splitting of XML files using SAX
 
Similar Threads
Which XML Parser should I use?
Recommendation on Best XML API to create XML 1.0 files
How can I validate the XML schema with XML files using localpath?
XML Parser
XML Transformation