Well the main purpose of xylem is to transfer sap from the roots to the leaves and phloem typically transports sugars from leaves to sink tissue. Xylem only travels up from the roots but phloem can have either travel up or down. The outside cells of xylem are dead and the the cells that make up phloem are the sieve elements, which are supported by companion cells.