# Variable Typing and XML

**URL:** https://www.finalbuilder.com/forums/t/variable-typing-and-xml/1873
**Category:** Discussion
**Created:** [October 14, 2011, 1:29am UTC](https://www.finalbuilder.com/forums/t/variable-typing-and-xml/1873 "2011-10-14T01:29:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nelsonwolf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/b9e5f3/32.png) [@nelsonwolf](https://www.finalbuilder.com/forums/u/nelsonwolf)
#### Post date: [October 14, 2011, 1:29am UTC](https://www.finalbuilder.com/forums/t/variable-typing-and-xml/1873/1 "2011-10-14T01:29:11Z")

</div>

&nbsp;I just discovered if I have a project variable of boolean type, and I read in an XML value that has a variable in the value that evaluates to True for instance, the read xml action will fail:

Error Setting variable "FXCopyToWebRoot : Variable FXCopyToWebRoot Is of Type Boolean  
Failed to set the value : Could not convert variant of type (UnicodeString) into type (Boolean)

Is this the desired behavior? &nbsp;For me it means I probably will have to stick to Variant for everything because I do this kind of action a lot.

Thanks,

-Nelson

---

<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 14, 2011, 4:10am UTC](https://www.finalbuilder.com/forums/t/variable-typing-and-xml/1873/2 "2011-10-14T04:10:25Z")

</div>

Hi Nelson   
  
 I just tried to replicate this and it worked as expected. Which build are you using? What is the actual text that is read in from xml? I tried it with True/true/False/false/0/1/12344 etc and it worked fine each time.
