init
write xml