Update XMLTools.js

Add licensing header