Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
|
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 12th, 2003, 03:14 PM
Authorized User
 
Join Date: Nov 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Concatenating many XML files

Hi ...

My program accesses 50 xml files one at a time, uses JAXP API and DOM parser to update each and puts the updated DOM into a new XML file. So, I will be left with 50 updated xml files. Its fine till now...

But what I want to accomplish is to have a SINGLE xml file as output instead of 50 different xml files.

i tried to append one dom to an other as a child element but it didnt work as we cannot append DOMs.

Is there any way to concatenate these XML files? Infact, I need to concatenate the first child of every XML file in to a single new xml file.

one more question......is there a way to concatenate the several DOMs that I got using JAXP API? I mean I dont want to create 50 xml files and then concatenate them. what i want to do is to merge the DOMs as they are formed...is it something possible?

Any suggestion is greatly appreciated!

Thanks.
-Srivalli.






Similar Threads
Thread Thread Starter Forum Replies Last Post
concatenating records rashi Access VBA 9 November 6th, 2008 05:07 PM
Problem to create an xml file from two xml files saurabh_inblore XSLT 1 April 12th, 2006 02:58 AM
Concatenating many XML files srivalli9 XML 4 March 30th, 2006 03:05 AM
Concatenating files modification jkmyoung J2EE 0 November 23rd, 2004 03:17 PM
Merge XML files into a xml file using xslt lxu XML 4 November 6th, 2003 06:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.