The D-xylose absorption test measures uses blood or urine to measure the level of D-xylose in the body. D-xylose is a type of sugar, and the test helps diagnose problems that prevent the small intestine from absorbing nutrients in food.