Yeah your right I guess. Sxe was because I started off using simple xml element. Then decided i didn't like it because i was then prettying the xml for the generated file at the end with dom document