Hi,

I have multiple XML files that I have to merge into a single output XML file.
From every file I have to remove the XML directive <?xml...?>

At the moment I am doing it with BufferedReader and I read line by line skipping it if starting with <?...>. It works fine and for 40 XML files it is quite faster (the resulting XML file is about 8Mb) and it takes few seconds.

Is there a better way to do it?