An endoxylanase rapidly hydrolyzes xylan into major product xylobiose via transglycosylation of xylose to xylotriose or xylotetraose.