Prevent Ampersand Escaping

2014-01-14 Thread Friessen, Michelle
Greetings, Is there any way to stop XMLBeans version 2.5.0 from escaping the ampersand? Per system requirements, I am converting special characters as follows: return str.replace(, #x0026;).replace(\, #x0022;).replace(', #x0027;).replace(, #x003C;).replace(, #x003E;); However, xmlbeans is

Re: Prevent Ampersand Escaping

2014-01-14 Thread Cezar Andrei
Michelle, You're right, XML content that contains and needs to be escaped and XmlBeans does that even if you try to escape it beforehand, which is not right. You're also right that using XmlOptionCharEscapeMap doesn't affect them, if you know what you're doing you can look at the code that does