Fall back to XQueryTree if necessary