Could use some more info. Do the files have a common root node, which will remain to be the root node? Do you have some example XML of what these files look like?
You might be able to use something that appends the files (all text) then perhaps use regular expression search and replace to remove the unneeded parts. If this is something tht gets repeated a lot, this won't be a very good option.