check type of xml data returned from load xml