new version of xml handler