Using single quotes would save a bunch of escaping and make this more readable.
```
echo '       time = "NULL">' >> "$XMLTMP"
```