remove newline
Add XML generation helpers