Hi all
I have an xml document which is generated at request but some of the free text content that a user might type in may include an ampersand (&) and in order to keep the xml document valid i need to replace the ampersands with &
I am looking for a simple way (via a function which will be run in the background) to open the xml document and do a full document find and replace. I.e find all occurances of & and replace them with & and then save the xml file.
can anyone provide some sample code that would achieve this?
Many thanks