Refactor: tools: Use new XML iterators in the tools/ directory.
This replaces existing loops over XML child nodes with the new iterator functions.