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

merging multiple XML documents

  • From: "Kaszubski, William J." <bill.kaszubski@C...>
  • To: "'xml-dev@x...'" <xml-dev@x...>
  • Date: Mon, 15 May 2000 14:00:54 -0500

merge multiple xml
We have a situation where we need to merge several (anywhere from 2 to 100)
XML documents into one document that is the union of all the documents. All
the documents are valid (to the same DTD) and well-formed, and each of the
lowest-level nodes can be uniquely identified by its value and the values of
all of its ancestors. All of the nodes in the subdocuments all are sorted so
that they appear in ascending order according to this unique identifier. We
need to end up with a document that has the same structure as the input
documents, contains all of the unique nodes from all the input documents,
and is also sorted according to the unique identifier.

Obviously , we can parse each one with the DOM, walk through them all
simultaneously looking for the node that should appear next, and then copy
one node at a time to yet another DOM instance, but we fear this might be a
little slow <g>. Any ideas? Could SAX help here? Is this an XSL problem?
Where should we begin?


regards,
Bill Kaszubski



-----------------------------------------------------
Confidentiality Notice: This e-mail transmission 
may contain confidential or legally privileged 
information that is intended only for the individual 
or entity named in the e-mail address. If you are not 
the intended recipient, you are hereby notified that 
any disclosure, copying, distribution, or reliance 
upon the contents of this e-mail is strictly prohibited. 

If you have received this e-mail transmission in error, 
please reply to the sender, so that Covance can arrange 
for proper delivery, and then please delete the message 
from your inbox. Thank you.

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.