Mono Class Library: System.Xml.XmlWriter Overview | MembersSystem.Xml.XmlWriter.WriteString Method |
Writes the specified text. [Edit]
|
Type Reason InvalidOperationException The XmlWriter.WriteState is WriteState.Closed. [Edit]
Operation
This method performs the following conversions before writing the text:
- The characters '&', '<', and '>' are replaced with "&", "<", and ">", respectively.
- Character values in the range 0x-0x1F (excluding the white space characters 0x9, 0x10, and 0x13) are replaced with numeric character entities ("�" through "�x1F").
- If called in the context of an attribute value, double and single quotes are replaced with """ and "'" respectively.
If text is null or string.Empty, this method writes a text node with no data content.
Note to Inheritors
This method must be overridden in order to provide the functionality described above, as there is no default implementation. [Edit]
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0