# Xpath does not reference a node!

**URL:** <https://forum.ansible.com/t/xpath-does-not-reference-a-node/27721>\
**Category:** Ansible Project\
**Created:** [June 6, 2018, 2:29pm UTC](https://forum.ansible.com/t/xpath-does-not-reference-a-node/27721 "2018-06-06T14:29:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ali\_Khawaja](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Ali\_Khawaja](https://forum.ansible.com/u/Ali_Khawaja)\
**Post date:** [June 6, 2018, 2:29pm UTC](https://forum.ansible.com/t/xpath-does-not-reference-a-node/27721/1 "2018-06-06T14:29:45Z")

</div>

My xml file is below:

\<?xml version="1.0" ?\>

and i am doing the following in my playbook:

- name: update sharepoint version  
xml:  
path: “AutoSPInstaller/AutoSPInstallerInput.1.xml”  
xpath: “/Configuration/Install/@SPVersion”  
value: 2010

its giving me the following error:

fatal: [localhost]: FAILED! =\> {“changed”: false, “msg”: “Xpath /Configuration/Install/@SPVersion does not reference a node! tree is \<Configuration Environment="" Version="3.99.60"\>\n \<Install SPVersion=""/\>\n\n”}

i cant seem to figure out why its giving me this error message. i’ll really appreciate any help with this.

---

<div class="post-metadata">

**Author:** ![Ali\_Khawaja](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Ali\_Khawaja](https://forum.ansible.com/u/Ali_Khawaja)\
**Post date:** [June 6, 2018, 2:38pm UTC](https://forum.ansible.com/t/xpath-does-not-reference-a-node/27721/2 "2018-06-06T14:38:14Z")

</div>

sent too early. attributes are references separately using the attribute keyword. its working now!
