log4net SDK Reference |

# Transform.MaskXmlInvalidCharacters Method

Replace invalid XML characters in text string

[Visual Basic]
Public Shared Function MaskXmlInvalidCharacters( _
ByVal textData As String, _
ByVal mask As String _
) As String
[C#]
public static string MaskXmlInvalidCharacters(
string textData,
string mask
);

#### Parameters

textData
  the XML text input string
mask
  the string to use in place of invalid characters

#### Return Value

A string that does not contain invalid XML characters.

#### Remarks

Certain Unicode code points are not allowed in the XML InfoSet, for details see: http://www.w3.org/TR/REC-xml/#charsets.

This method replaces any illegal characters in the input string with the mask string specified.

#### See Also

Transform Class | log4net.Util Namespace