If you're generating the XML files then what samtregar gave you should be enough. If you really want to escape ' " ' you can add " to his code.
In reply to Re: Escaping XML Reserved characters
by shenme
in thread Escaping XML Reserved characters
by skinnymofo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |