public static void replaceBadXmlCharactersBySpace ( char [ ] cbuf , int off , int len ) { for ( int i = off ; i < off + len ; i ++ ) { if ( isBadXmlCharacter ( cbuf [ i ] ) ) { cbuf [ i ] = ' ' ; } } }
Replace bad xml charactes in given array by space