Transform WriteEscapedXmlString 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

C#
VB
C++
F#
Copy

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

    Public Shared Sub WriteEscapedXmlString (
    	writer As XmlWriter,
    	textData As String,
    	invalidCharReplacement As String
    )

    public:
    static void WriteEscapedXmlString(
    	XmlWriter^ writer,
    	String^ textData,
    	String^ invalidCharReplacement
    )

    static member WriteEscapedXmlString :
            writer : XmlWriter *
            textData : string *
            invalidCharReplacement : string -> unit

#### Parameters

writer
  Type: System.Xml
  XmlWriter
  the writer to write to
textData
  Type: System
  String
  the string to write
invalidCharReplacement
  Type: System
  String
  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

Transform Class
log4net.Util Namespace