test if xml is XMLDocument