Handle relation in XML