It is an interesting research topic to study the interfacial interactions between hemicellulose and cellulose, specifically how hemicellulose's structure affects its binding to cellulose nanofibers. Our research proposes that dispersion interaction play an important role in this interfacial interaction, more so than electrostatic forces when considering the adherence of cellulose to xylan. To quantify these interactions, the Atomic Force Microscope (AFM) colloidal probe technique is applied to measure the intermolecular forces between cellulose nanofibers, which are attached to the probe and xylan. These measured forces are then analyzed in relation to the length, diameter and functional groups of the nanocellulose, as well as the molecular weight and side chains of the xylan. Moreover, the predominance of dispersion forces by contrasting the adhesive forces before and after the grafting of a large nonpolar group onto xylan. This modification significantly reduces contact between the cellulose and xylan backbone, thereby markedly diminishing the dispersion interactions. Parallel to the AFM experiments, molecular dynamics (MD) simulations corroborate the experimental results and support our hypotheses. Collectively, these findings contribute to a deeper understanding of polysaccharide interactions within lignocellulose.