public override void WriteString( string text ) { if ( text != null ) { if ( checkValues ) { CheckCharacters( text ); } if ( replaceNewLines && WriteState != WriteState.Attribute ) { text = ReplaceNewLines( text ); } } writer.WriteString( text ); }