title: Facing issue while updating xml file using win_xml ansible module on windows
body: <p>1.I'm trying to update xml element values in test.xml file using ansible script with help of win_xml, my ansible playbook looks like below:</p>
  
  <pre><code>---
  - hosts: windows
    gather_facts: no
  
    tasks:
    - name: Updating xml file
      win_xml:
       path: 'C:\test.xml'
       xpath: '/properties/entry'
       fragment: 'test'
       attribute: 'key="test"'
       type: text
  </code></pre>
  
  <p>2.Run playbook using below command:</p>
  
  <pre><code>ansible-playbook -i ../hosts win-playbook.yml -vvv
  </code></pre>
  
  <p>3.This command failing with below error:</p>
  
  <pre><code>  The full traceback is:
  The property 'SchemaInfo' cannot be found on this object. Verify that the property exists.
  At line:118 char:1
  + $namespaceMgr.AddNamespace($xmlorig.$localname.SchemaInfo.Prefix, $na ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
      + FullyQualifiedErrorId : PropertyNotFoundStrict
  
  ScriptStackTrace:
  at &lt;ScriptBlock&gt;, &lt;No file&gt;: line 118
  
  fatal: [windows]: FAILED! =&gt; {
      "changed": false,
      "msg": "Unhandled exception while executing module: The property 'SchemaInfo' cannot be found on this object. Verify that the property exists."
  }
  </code></pre>