private void Init( XmlWriterSettings settings ) {
indentLevel = 0;
indentChars = settings.IndentChars;
newLineOnAttributes = settings.NewLineOnAttributes;
mixedContentStack = new BitStack();
// check indent characters that they are valid XML characters
if ( base.checkCharacters ) {
if ( newLineOnAttributes ) {
base.ValidateContentChars( indentChars, "IndentChars", true );
base.ValidateContentChars( newLineChars, "NewLineChars", true );
}
else {
base.ValidateContentChars( indentChars, "IndentChars", false );
if ( base.newLineHandling != NewLineHandling.Replace ) {
base.ValidateContentChars( newLineChars, "NewLineChars", false );
}
}
}
}