update xQuery to guess file format