dcsimg
concatenating xml files
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Srivalli_Chavali
Posted On:   Wednesday, November 12, 2003 09:06 AM

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? Any suggestion is greatly appreciated! Thanks. -Srivalli.    More>>

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?

Any suggestion is greatly appreciated!



Thanks.

-Srivalli.

   <<Less

Re: concatenating xml files

Posted By:   Anonymous  
Posted On:   Thursday, November 13, 2003 08:40 AM

With simple xml files you can simple concatenate them and add a root tag at the beginning and at the end of the result. E.g. with Ant (not tested):

<root>



</root>
About | Sitemap | Contact