TransformWriteEscapedXmlString Method Apache log4net™ SDK Documentation
Write a string to an XmlWriter

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

public static void WriteEscapedXmlString(
	XmlWriter writer,
	string textData,
	string invalidCharReplacement
)

Parameters

writer
Type: System.XmlXmlWriter
the writer to write to
textData
Type: SystemString
the string to write
invalidCharReplacement
Type: SystemString
The string to replace non XML compliant chars with
Remarks

The test is escaped either using XML escape entities or using CDATA sections.

See Also

Reference