Gets or sets a value indicating whether to encode element and attribute names according to the XML Names specification.
[Visual Basic] Public Property EncodeNames As Boolean [C#] public bool EncodeNames {get; set;} [C++] public: __property bool get_EncodeNames(); public: __property void set_EncodeNames(bool); [JScript] public function get EncodeNames() : Boolean; public function set EncodeNames(Boolean);
true to encode; otherwise, false.
Default is false.
The complement of this is the DecodeNames flag on the XmlTextReader.
XmlTextWriter Class | XmlTextWriter Members | System.NewXml Namespace