I have to encode the 5 XML reserved chars (& < > " and ') properly as follows:
"&", "&"
"<", "<"
">", ">"
"\"", """
"\'", "'"
I can do them one by one, but is it possible in regexp something like ("[&|<|>|\"|\']", "&|<"); ... etc so that it will not be executed in 5 operations one after another but alltogether simultaneously?