# How to change values in XML based on Key-value pairs

**URL:** https://www.finalbuilder.com/forums/t/how-to-change-values-in-xml-based-on-key-value-pairs/2205
**Category:** Discussion
**Created:** [October 1, 2013, 1:06am UTC](https://www.finalbuilder.com/forums/t/how-to-change-values-in-xml-based-on-key-value-pairs/2205 "2013-10-01T01:06:41Z")
**Posts on this page:** 2
**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: [October 1, 2013, 1:06am UTC](https://www.finalbuilder.com/forums/t/how-to-change-values-in-xml-based-on-key-value-pairs/2205/1 "2013-10-01T01:06:41Z")

</div>

&nbsp;

&nbsp;

Hi All,

&nbsp;

We have a requirement like we need to write values from Finalbuilder to XML . Please find the below how our XML look likes .

&nbsp;

All nodes are Setting (with same name) and attributes are same(for every node).

&nbsp;

How can we change the value of a particular node by using value of key.

&nbsp;

For Example if key="NugetBuilder" I want to change the value in the node corresponding to NugetBuilder key only not to cahnge in other nodes.

&nbsp;

**Example of XMl:**

-   
   
-

&nbsp;

&nbsp;

Please tell us the FinalBuilderActions which we can achieve this functionality.

&nbsp;

&nbsp;

&nbsp;

---

<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: [October 1, 2013, 3:15am UTC](https://www.finalbuilder.com/forums/t/how-to-change-values-in-xml-based-on-key-value-pairs/2205/2 "2013-10-01T03:15:34Z")

</div>

The forums messed up your xml. FinalBuilder has a bunch of XML actions, but you do need to know XPath to be able to make use of them.
