[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Merge xml documents with SAX


java merge xml
I'll second the vote for a pull parser approach. I've got a simple pull 
parser document comparison implementation as part of my JiBX project 
that might serve as a good starting point for this: 
http://cvs.sourceforge.net/viewcvs.py/*checkout*/jibx/jibx/build/extras/org/jibx/extras/DocumentComparator.java?content-type=text%2Fplain&rev=1.1 
(or in the distribution as 
build/extras/org/jibx/extras/DocumentComparator.java). If your documents 
use ordering doing a merge should be easy.

  - Dennis

Dennis M. Sosnoski
Enterprise Java, XML, and Web Services Support - http://www.sosnoski.com
JiBX Lead Developer - http://www.jibx.org
Redmond, WA  425.885.7197

Chris Wilper wrote:

>Hi,
>
>You might find http://www.alphaworks.ibm.com/tech/xmldiffmerge
>useful.  I'm not sure whether it uses SAX or DOM or a combo though.
>
>Another idea is to abandon DOM and SAX altogether and try a 
>pull parser on each of your streams, controlling the merging process 
>in a more straightforward way.  
>http://www.extreme.indiana.edu/xgws/xsoap/xpp/
>
>- Chris
>
>-----Original Message-----
>From: Dongling Ding [mailto:dling61@y...]
>Sent: Friday, November 21, 2003 10:56 AM
>To: xml-dev@l...
>Subject:  Merge xml documents with SAX
>
>
>Hi,
>
>
>We're dealing with XML documents merge. The size of
>docs may be big (> 2 mb). The DOM objects really
>consume memory resource here. Is there any to build
>one DOM object and use SAX to access another doc, and
>perform merge process? Is there anyone trying to use
>this kind of approach?
>
>Any light on this?
>
>
>Thanks
>
>
>Dongling
>  
>


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.