If $AB\parallel XY$, then since $BX \cap AY = Z$, $Z$ is colinear separately with $BX$ and $AY$. This means by opposite angles, $\angle BZA = \angle XZY$, by alternate angles for a pair of parallel line segments, $\angle BAZ = \angle XYZ$. Thus y interior angle of triangles the remaining pair of angles are equal. This means $\triangle ABZ \sim \triangle XYZ$. Now from the previous discussion, $\triangle ABC \sim \triangle XYZ$ and thus we have:
\begin{align}
\frac{XY}{AB} = \frac{YC}{BC} = \frac{CX}{CA}\\