What is a xylem job or function?

The xylem takes water up from the roots of a plant to the leaves.