We have a program which reads the data from database and generates XML messages
Some data items have special characters like "A&P" , "G E". Since these characters are not allowed as XML element names. CAn you some point me to a code snippet or library which
takes a String and replaces all occurrences of "&", " ", " " with corresponding characters.
Example: The one on the left should be replaced with the one on the right
& --> ""
" " --> _