Originally Posted by stebbi
Thanks I need it to be in the code there will be clients uploading the file cant be sure they will use & can I expect this problem with any other characters?
yes, any character which is not allowed in xml must be replace by it's entity, that means:
& -> &
< -> <
> -> >
' -> '
" -> "
The alternative is to use CDATA sections. If the user upload the file I suggest to use a schema to validate it when they upload.
My apologize that I didn't explay why in my previos replay.