How can I filter the file list in 2 types of files (CSV, XML) just files that has those extensions with a filepattern?
Use the <file:matcher>
element as mentioned in the documentation examples.
Example:
<file:list path="/somepath">
<file:matcher filenamePattern="*.{csv,xml}" />
</file:list>