# Read App.config

**URL:** https://www.finalbuilder.com/forums/t/read-app-config/358
**Category:** Discussion
**Created:** [February 14, 2007, 2:14am UTC](https://www.finalbuilder.com/forums/t/read-app-config/358 "2007-02-14T02:14:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [February 14, 2007, 2:14am UTC](https://www.finalbuilder.com/forums/t/read-app-config/358/1 "2007-02-14T02:14:49Z")

</div>

Hi there,  
  
Are there a possibility to read an app.config with finalbuilder?  
  
Here my app.config:  
  
\<?xml version="1.0" encoding="utf-8" ?\>  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 \<ch.zeitag.build.finalbuilder.version.properties.settings\>  
  
 C:\Programme\FinalBuilder 5\Finalbuilder5.exe  
  
  
 D:\System7\Source\Install\FinalBuilder\MainScripts\Sys7Main.fbp5  
  
  
 D:\System7\Source\System7  
  
  
 System7  
  
  
 $/Source/System7  
  
 \</ch.zeitag.build.finalbuilder.version.properties.settings\>  
  
  
  
  
I want read the add key=“blabla” values. Is there a possibility to read this values?   
  
Thanks a lot.  
  
pro

---

<div class="post-metadata">

### Author: ![robert.wachtel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@robert.wachtel](https://www.finalbuilder.com/forums/u/robert.wachtel)
#### Post date: [February 14, 2007, 2:27am UTC](https://www.finalbuilder.com/forums/t/read-app-config/358/2 "2007-02-14T02:27:23Z")

</div>

You mean Visual Studio’s app.config files? Those are standard XML files, so you can read it with the XML actions, i.e. “Read XML Value to Variable”.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [February 14, 2007, 2:30am UTC](https://www.finalbuilder.com/forums/t/read-app-config/358/3 "2007-02-14T02:30:46Z")

</div>

Hi Robert,  
  
Ups - in my message there are no app.config?!?  
  
Now I has posted it as screenshot…🙂  
  
Yes, I mean [VS.NET](http://VS.NET) App.config Files…  
  
How can I read it with this action a value of an add key=“blalba”?  
  
I don’t know what I must write in XPath to Node.  
  
Thanks a lot for your help…

![fb.JPG](https://www.finalbuilder.com/forums/uploads/default/original/1X/01cd5b1747ce4e5df587e1689189325888643b4a.jpeg)

---

<div class="post-metadata">

### Author: ![robert.wachtel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@robert.wachtel](https://www.finalbuilder.com/forums/u/robert.wachtel)
#### Post date: [February 14, 2007, 3:21am UTC](https://www.finalbuilder.com/forums/t/read-app-config/358/4 "2007-02-14T03:21:03Z")

</div>

If you want to read the values of each key of appSettings sections you can use the “XML Node Iterator” action:  
  
The XPath to iterate over should be “/configuration/appSettings/app”. Next you’ll have to select “Set variable to the value of an attribute” and name the attribute (“value”).  
  
If you want to extract only a specific value of a given key you can use the “Read XML Value to Variable” action:  
  
The XPath to the Node should be something like “/configuration/appSettings/add[@key=“BuildMain”]” (for the add node with the “BuildMain” key value). Then select “Read an attribute of the XPath Node” and name the attribute “value”.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [February 14, 2007, 4:03am UTC](https://www.finalbuilder.com/forums/t/read-app-config/358/5 "2007-02-14T04:03:59Z")

</div>

Hi Robert,  
  
Thanks a lot. Now I can read values with Finalbuilder from my app.config 🙂  
  
Regards,  
  
Patrick

---

<div class="post-metadata">

### Author: ![robert.wachtel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@robert.wachtel](https://www.finalbuilder.com/forums/u/robert.wachtel)
#### Post date: [February 14, 2007, 4:14am UTC](https://www.finalbuilder.com/forums/t/read-app-config/358/6 "2007-02-14T04:14:43Z")

</div>

Hi Patrick!  
  
You're welcome.  
  
Robert
