# How to use Read XML Value to Variable to action

**URL:** https://www.finalbuilder.com/forums/t/how-to-use-read-xml-value-to-variable-to-action/277
**Category:** Discussion
**Created:** [December 6, 2006, 3:28am UTC](https://www.finalbuilder.com/forums/t/how-to-use-read-xml-value-to-variable-to-action/277 "2006-12-06T03:28:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pj\_kwiksystems](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/a698b9/32.png) [@pj\_kwiksystems](https://www.finalbuilder.com/forums/u/pj_kwiksystems)
#### Post date: [December 6, 2006, 3:28am UTC](https://www.finalbuilder.com/forums/t/how-to-use-read-xml-value-to-variable-to-action/277/1 "2006-12-06T03:28:36Z")

</div>

Hi,  
  
Can anyone give me some guidance on how to use the above action?  
  
I’m trying to read the version attribute to a variable (in the attached file I would expect to get $Revision: 1.2$)  
  
Cheers  
  
Paul James

 ![schema.jpg](https://www.finalbuilder.com/forums/uploads/default/original/1X/ccab9c5c49eb8506b1b7f7e0c123e6b215bb73cb.jpeg)

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [December 6, 2006, 11:43am UTC](https://www.finalbuilder.com/forums/t/how-to-use-read-xml-value-to-variable-to-action/277/2 "2006-12-06T11:43:59Z")

</div>

Hi Paul,  
  
Thanks for your post. I think the following will work (if you post the actual XML file then I’ll test it out and give you a definitive solution.)  
  
Create a “Read XML Value to Variable” action and set it up as shown in the two screenshots.  
  
- Angus

![xmlscreenshot1.jpg](https://www.finalbuilder.com/forums/uploads/default/original/1X/6c61cd3b18a5520e2a57497fe920fadee61634de.jpeg)

![xmlscreenshot2.jpg](https://www.finalbuilder.com/forums/uploads/default/original/1X/13883147684940f166074d680e277c94cfd1c63b.jpeg)

---

<div class="post-metadata">

### Author: ![pj\_kwiksystems](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/a698b9/32.png) [@pj\_kwiksystems](https://www.finalbuilder.com/forums/u/pj_kwiksystems)
#### Post date: [December 7, 2006, 10:06am UTC](https://www.finalbuilder.com/forums/t/how-to-use-read-xml-value-to-variable-to-action/277/3 "2006-12-07T10:06:26Z")

</div>

The actual xml is shown in the screenshot on my original post. I experimented with your suggestion and found that if I had a setting of /xs:schema for XPath for Node then everything worked as I was expecting.  
  
Cheers  
  
Paul James

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [December 7, 2006, 11:12am UTC](https://www.finalbuilder.com/forums/t/how-to-use-read-xml-value-to-variable-to-action/277/4 "2006-12-07T11:12:14Z")

</div>

Hi Paul,  
  
Thanks. I realise that was the XML content, I just didn’t want to copy it manually if I could avoid it (I used to type in assembly language programs on my Apple //e, but that was a while ago now!) Glad you got it working. MSXML and XPath can be very strange bedfellows when namespaces are involved.  
  
Regards,  
  
  
Angus
