- Writes correct XML