implemented xml generator