Writes the start of an attribute with the specified prefix and name, and associates the prefix with the specified namespace URI.
Type Reason ArgumentException XmlTextWriter.Namespaces is false for the writer, and prefix and ns are not both null or string.Empty. InvalidOperationException The XmlTextWriter.WriteState is not one of the following: WriteState.Attribute or WriteState.Element.
If any of the input parameters are null or string.Empty, the start attribute is written with that parameter missing.
Note:This method overrides XmlWriter.WriteStartAttribute(string, string).
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0