Added XMLDocument to local scope

on Utils.betterInstanceOf() method