Refactor of win_xml (2nd attempt) to add support for processing multiple nodes and counting nodes matched by xpath (#53362)

* add multi-node manipulation, delete on xpath match only and count capability to win_xml

* fix pep8 and yamllint errors identified by ci tests

* fixed bugs when handling multiple elements, multiple attribute nodes and handling for attribute nodes when using xpaths that only select attributes like //@lang.  Added more tests and tweaked documentation.

* fixed line-too-long error

* fixed trailing space errors

* trailing whitespace expunged

* bump version_added to 2.9 for new changes

* fix PSAvoidUsingPositionalParameters sanity check failure

* refix sanity check as it broke the msg return value
This commit is contained in:
jhawkesworth
2019-04-30 21:19:56 +01:00
committed by Matt Davis
parent 7e3b1da33f
commit 0e8a77520c
5 changed files with 383 additions and 122 deletions

View File

@@ -0,0 +1,5 @@
minor_changes:
- win_xml - Behaviour change, module now processes all nodes specified by xpath, not just first encountered.
- win_xml - Behaviour change, fragment no longer required when processing element type nodes and state=absent.
- win_xml - Some output messages worded differently now the module uses a generic method to save changes.
- win_xml - Added 'count' module parameter which will return number of nodes matched by xpath if set to yes/true