I need your expertise once again. I have a java class that searches a directory for xml files (displays the files it finds in the eclipse console window), applies the specified xslt to these and sends the output to a directory.
What I want to do now is create an xml containing the file names and file format types. The format should be something like;
<file> <fileName> </fileName> <fileType> </fileType> </file> <file> <fileName> </fileName> <fileType> </fileType> </file>
Where for every file it finds in the directory it creates a new <file>.
Any help is truely appreciated.
Have a look at DOM and ECS. The following example was adapted to you requirements from here: