Parse the relation elements.