# Read Value From XML File?

**URL:** https://www.finalbuilder.com/forums/t/read-value-from-xml-file/136
**Category:** Discussion
**Created:** [July 18, 2006, 5:15am UTC](https://www.finalbuilder.com/forums/t/read-value-from-xml-file/136 "2006-07-18T05:15:02Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![veldev](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/v/c89c15/32.png) [@veldev](https://www.finalbuilder.com/forums/u/veldev)
#### Post date: [July 18, 2006, 5:15am UTC](https://www.finalbuilder.com/forums/t/read-value-from-xml-file/136/1 "2006-07-18T05:15:02Z")

</div>

I want to be able to read and write to an XML file. I see the Edit XML File action, but I don’t see a way to just simply read a value.  
  
Am I missing something?

---

<div class="post-metadata">

### Author: ![rlove](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/rlove/32/27_2.png) [@rlove](https://www.finalbuilder.com/forums/u/rlove)
#### Post date: [July 18, 2006, 8:50am UTC](https://www.finalbuilder.com/forums/t/read-value-from-xml-file/136/2 "2006-07-18T08:50:57Z")

</div>

You can use the XML Node Iterator, and specify a XPath statement that get the value you are after. If your only after one item(specified by the xpath), then the iterator will only loop once.

---

<div class="post-metadata">

### Author: ![veldev](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/v/c89c15/32.png) [@veldev](https://www.finalbuilder.com/forums/u/veldev)
#### Post date: [July 18, 2006, 9:52am UTC](https://www.finalbuilder.com/forums/t/read-value-from-xml-file/136/3 "2006-07-18T09:52:36Z")

</div>

Where do I find the XML Node Iterator? I don’t see this under the XML or Iterators groups.

---

<div class="post-metadata">

### Author: ![rlove](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/rlove/32/27_2.png) [@rlove](https://www.finalbuilder.com/forums/u/rlove)
#### Post date: [July 18, 2006, 11:19am UTC](https://www.finalbuilder.com/forums/t/read-value-from-xml-file/136/4 "2006-07-18T11:19:20Z")

</div>

It’s under XML Section, and it’s only available in the pro version.[  
https://www.finalbuilder.com/Products/FinalBuilder/FeatureMatrix/FeaturesXMLActions/tabid/107/Default.aspx](https://www.finalbuilder.com/Products/FinalBuilder/FeatureMatrix/FeaturesXMLActions/tabid/107/Default.aspx)

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [July 19, 2006, 3:01am UTC](https://www.finalbuilder.com/forums/t/read-value-from-xml-file/136/5 "2006-07-19T03:01:10Z")

</div>

and there’s also the “Read XML Value to Variable” action.  
  
The easiest way to find all the xml actions is to type xml in the Filter (Ctrl-i focuses the filter edit box)  
  
.t8

---

<div class="post-metadata">

### Author: ![veldev](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/v/c89c15/32.png) [@veldev](https://www.finalbuilder.com/forums/u/veldev)
#### Post date: [July 19, 2006, 4:19am UTC](https://www.finalbuilder.com/forums/t/read-value-from-xml-file/136/6 "2006-07-19T04:19:25Z")

</div>

Thanks for the tip on the filter - I never noticed that.  
  
I do have the pro version and I’ve typed XML into the filter and I don’t see these actions. Is there something additional I need to download???

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [July 19, 2006, 6:06am UTC](https://www.finalbuilder.com/forums/t/read-value-from-xml-file/136/7 "2006-07-19T06:06:36Z")

</div>

No, the xml actions should be in there by default unless you’re using FB Standard. Please check your about screen to see which edition you are using. Also, go to Tool | Package Manager and look for FinalBuilder 4.x Professional Edition Misc Actions package - make sure it’s in the list an enabled (if it’s not, add FB40Enterprise.bpl).  
  
.t8

---

<div class="post-metadata">

### Author: ![veldev](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/v/c89c15/32.png) [@veldev](https://www.finalbuilder.com/forums/u/veldev)
#### Post date: [July 19, 2006, 6:25am UTC](https://www.finalbuilder.com/forums/t/read-value-from-xml-file/136/8 "2006-07-19T06:25:38Z")

</div>

Professional Edition 3.1.0.181  
  
I see now that even though I just upgraded to the "latest version" it's the latest version of a previous release.   
  
This is aggravating. I just bought this a year ago and it seems I must now purchase a newer version in order to get a feature that should have been there in the first place. I mean really - XML actions but none that allow you to read a value?!?

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [July 20, 2006, 2:13am UTC](https://www.finalbuilder.com/forums/t/read-value-from-xml-file/136/9 "2006-07-20T02:13:44Z")

</div>

Hi Peter,  
  
Yep, you’re one major version behind! We agree that reading an XML value should have been there - which is why we added it (and the xml node iterator) for FB4. If you do decide to upgrade to FB4 I’m sure there’s plenty of new stuff that it’ll be worth the upgrade.   
  
See here for list of new features:  
[https://www.finalbuilder.com/new-in-finalbuilder-4.aspx](https://www.finalbuilder.com/new-in-finalbuilder-4.aspx)  
  
.t8
