WriteProcessingInstruction()
Contents
[
Hide
]XmlWriter::WriteProcessingInstruction(String, String) method
When overridden in a derived class, writes out a processing instruction with a space between the name and text as follows: <?name text?>.
virtual void System::Xml::XmlWriter::WriteProcessingInstruction(String name, String text)=0
Arguments
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of the processing instruction. |
| text | String | The text to include in the processing instruction. |
Exceptions
| Exception | Description |
|---|---|
| ArgumentException | The text would result in a non-well formed XML document. name is either nullptr or String::Empty. |
Remarks
This method is being used to create an XML declaration after XmlWriter::WriteStartDocument has already been called.
See Also
- Class String
- Class XmlWriter
- Namespace System::Xml
- Library Aspose.Slides