Fixed bug in printing relationship in XML data generator