Bamboo and its mechanical processing residues have broad prospects for high value-added utilization. In this research, p-toluenesulfonic acid was used for the pretreatment of bamboo to investigate the effects of extraction and depolymerization of hemicellulose. The response and behavior of changes of cell-wall chemical components were investigated after different solvent concentration, time, and temperature pretreatment. Results indicated that the maximum extraction yield of hemicellulose was 95.16 % with 5 % p-toluenesulfonic acid at 140 °C for 30 min. The depolymerized components of hemicellulose in the filtrate were mainly xylose and xylooligosaccharide, with xylobiose accounting for 30.77 %. The extraction of xylose from the filtrate reached a maximum of 90.16 % with 5 % p-toluenesulfonic acid at 150 °C for 30 min pretreatment. This research provided a potential strategy for the industrial production of xylose and xylooligosaccharide from bamboo and for the future conversion and utilization.