Class XmlWriterExtensions
Provides extension methods for XmlWriter.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Serialization
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public static class XmlWriterExtensionsMethods
WriteElementAttributeString(XmlWriter, String, String, String)
Writes an element with the specified name and a single attribute with the specified name and value.
Declaration
public static void WriteElementAttributeString(this XmlWriter writer, string elementName, string attributeName, string attributeValue)Parameters
| Type | Name | Description | 
|---|---|---|
| XmlWriter | writer | The writer. | 
| String | elementName | The name of the element. | 
| String | attributeName | The name of the attribute. | 
| String | attributeValue | The value of the attribute. | 
WriteElementFormatString(XmlWriter, String, String, Object[])
Writes an element with the specified name and value. The value is specified via a format string.
Declaration
public static void WriteElementFormatString(this XmlWriter writer, string elementName, string format, params object[] args)Parameters
| Type | Name | Description | 
|---|---|---|
| XmlWriter | writer | The writer. | 
| String | elementName | The name of the element. | 
| String | format | The value format string. | 
| Object[] | args | The value format string arguments. | 
WriteFormatString(XmlWriter, String, Object[])
Writes a given text specified via a format string.
Declaration
public static void WriteFormatString(this XmlWriter writer, string format, params object[] args)Parameters
| Type | Name | Description | 
|---|---|---|
| XmlWriter | writer | The writer. | 
| String | format | The format string. | 
| Object[] | args | The format string arguments. |