[Visual Basic] Public Shared Sub WriteEscapedXmlString( _ ByVal writer As XmlWriter, _ ByVal textData As String, _ ByVal invalidCharReplacement As String _ )
[C#] public static void WriteEscapedXmlString( XmlWriterwriter, stringtextData, stringinvalidCharReplacement );
Parameters
writer
the writer to write to
textData
the string to write
invalidCharReplacement
The string to replace non XML compliant chars with
Remarks
The test is escaped either using XML escape entities or using CDATA sections.