inventory-server: new scripts to fix XML + bugfixes