# Read Xml Value improvment

**URL:** <https://www.finalbuilder.com/forums/t/read-xml-value-improvment/4053>\
**Category:** Feature Requests\
**Created:** [July 16, 2009, 10:36am UTC](https://www.finalbuilder.com/forums/t/read-xml-value-improvment/4053 "2009-07-16T10:36:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabienriaille](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@fabienriaille](https://www.finalbuilder.com/forums/u/fabienriaille)\
**Post date:** [July 16, 2009, 10:36am UTC](https://www.finalbuilder.com/forums/t/read-xml-value-improvment/4053/1 "2009-07-16T10:36:38Z")

</div>

Hello,

When using _Read XMLValue to variable_&nbsp;Action, you are suppose to use a valid Xpath request.

We often use this action to get optional attributes. The bad thing is when xpath is invalid, action fails. Therefore, we have to set _Ignore failure_ and add _OnAfterEvent code_ to test action status.

It would be great to have an option _Fail if no node found_ to manage optional xpath (with ou without attribute)

I do not prefer to use Xml NodeIterator to get only 1&nbsp;node

Regards,

Fabien

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![fabienriaille](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@fabienriaille](https://www.finalbuilder.com/forums/u/fabienriaille)\
**Post date:** [October 2, 2009, 2:21am UTC](https://www.finalbuilder.com/forums/t/read-xml-value-improvment/4053/2 "2009-10-02T02:21:38Z")

</div>

Hello,

Any chance to&nbsp;add this option to the action ? many thanks

Fabien

---

<div class="post-metadata">

**Author:** ![fabienriaille](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@fabienriaille](https://www.finalbuilder.com/forums/u/fabienriaille)\
**Post date:** [October 2, 2009, 2:48am UTC](https://www.finalbuilder.com/forums/t/read-xml-value-improvment/4053/3 "2009-10-02T02:48:16Z")

</div>

in fact, I think i can use Xml NodeIterator. no really need to improve _Read XMLValue to variable_   
 bye
