TransformMaskXmlInvalidCharacters Method Apache log4net™ SDK Documentation
Replace invalid XML characters in text string

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

public static string MaskXmlInvalidCharacters(
	string textData,
	string mask
)

Parameters

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

Return Value

Type: String
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

Reference