Mono Class Library: System.Xml.XmlTextWriter Overview | Members

System.Xml.XmlTextWriter.WriteNmToken Method

Writes out the specified name, ensuring it is a valid name token (Nmtoken) according to the W3C XML 1.0 recommendation (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).

public override void WriteNmToken (string nmtoken)

Parameters

nmtoken
A string specifying the name to write.

Exceptions

TypeReason
ArgumentExceptionname is null or string.Empty; or name is not a valid XML Nmtoken.
InvalidOperationExceptionThe XmlTextWriter.WriteState is WriteState.Closed.

Remarks

Note:

This method overrides XmlWriter.WriteNmToken(string).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0