Refactor: tools: write_shadow_file()'s xml argument is now const
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>