# Adding FileSet patterns from XML

**URL:** https://www.finalbuilder.com/forums/t/adding-fileset-patterns-from-xml/1137
**Category:** Discussion
**Created:** [March 10, 2009, 1:30am UTC](https://www.finalbuilder.com/forums/t/adding-fileset-patterns-from-xml/1137 "2009-03-10T01:30:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lightbeam](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/e68b1a/32.png) [@lightbeam](https://www.finalbuilder.com/forums/u/lightbeam)
#### Post date: [March 10, 2009, 1:30am UTC](https://www.finalbuilder.com/forums/t/adding-fileset-patterns-from-xml/1137/1 "2009-03-10T01:30:01Z")

</div>

I'm still evaluating finalbuilder. I'm making some test projects, and have some difficulties now.  
  
I have a XML file, which have this:

![](upload://6I6PuuEmauXO02up6hgyYXrei26.jpeg)  
  
Now i need to make a project which reads those variables out of xml. Then it needs to make a fileset which selects the files in the directory which statisfies on the filters.  
  
The reading of XML isn't any problem. But i don't find how i can add those multiple exclude filters to the fileset.  
  
Can somebody help me to make this work?  
  
And it can't be done on the design part. When the xml change, the flow needs to be dynamic.  
  
  
  
Thx already!

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 11, 2009, 7:32am UTC](https://www.finalbuilder.com/forums/t/adding-fileset-patterns-from-xml/1137/2 "2009-03-11T07:32:53Z")

</div>

Hi Frederick

I have attached an example project that shows how to programattically alter the fileset include and exclude patterns.

You will need to use a recent test build as programattic changes to filesets were only added in recently.

https://www.finalbuilder.com/downloads/finalbuilder/620/FB620\_1362.exe

&nbsp;

[filesetexample.fbp6](https://www.finalbuilder.com/forums/uploads/default/original/2X/3/32d416b2986d704bb3a7f56d8aef5d6712bba4ce.fbp6) (20.894 KB)

---

<div class="post-metadata">

### Author: ![lightbeam](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/e68b1a/32.png) [@lightbeam](https://www.finalbuilder.com/forums/u/lightbeam)
#### Post date: [March 11, 2009, 9:49am UTC](https://www.finalbuilder.com/forums/t/adding-fileset-patterns-from-xml/1137/3 "2009-03-11T09:49:33Z")

</div>

Hi vincent,

This is just what i needed! It's perfect.

&nbsp;

Thank you for your help!
