XmlWriter::Create Method (String^, XmlWriterSettings^)
Creates a new XmlWriter instance using the filename and XmlWriterSettings object.
Assembly: System.Xml (in System.Xml.dll)
Parameters
- outputFileName
-
Type:
System::String^
The file to which you want to write. The XmlWriter creates a file at the specified path and writes to it in XML 1.0 text syntax. The outputFileName must be a file system path.
- settings
-
Type:
System.Xml::XmlWriterSettings^
The XmlWriterSettings object used to configure the new XmlWriter instance. If this is null, a XmlWriterSettings with default settings is used.
If the XmlWriter is being used with the Transform method, you should use the OutputSettings property to obtain an XmlWriterSettings object with the correct settings. This ensures that the created XmlWriter object has the correct output settings.
| Exception | Condition |
|---|---|
| ArgumentNullException | The url value is null. |
Available since 2.0