XmlWriter::Create Method (String^)
.NET Framework (current version)
Creates a new XmlWriter instance using the specified filename.
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | The url value is null. |
When you use this overload, an XmlWriterSettings object with default settings is used to create the XML writer.
Setting | Default |
|---|---|
true | |
false | |
false | |
Two spaces | |
Default (no removal) | |
\r\n (carriage return, new line) | |
false | |
false | |
true |
If you want to specify the features to support on the created XML writer, use an overload that takes an XmlWriterSettings object as one of its arguments, and pass in a XmlWriterSettings object with your custom settings.
.NET Framework
Available since 2.0
Available since 2.0
Show: