Fixes for XMLUtil and JSONUtil.
Merge branch 'master' of https://www.github.com/foam-framework/foam