XdmWriter.WriteProcessingInstruction MethodXdmWriter.WriteProcessingInstruction MethodXdmWriter::WriteProcessingInstruction Method
Writes out a processing instruction with a space between the name and text as follows: <?name text?>.
- Namespace: XmlPrime.SerializationXmlPrime.SerializationXmlPrime.Serialization
- Assembly: XmlPrime (in XmlPrime.dll)
Parameters
- name
Type: System.StringSystem.StringSystem::String^
The name of the processing instruction.
- text
Type: System.StringSystem.StringSystem::String^
The text to include in the processing instruction.
Exceptions
Exception | Condition |
ArgumentExceptionArgumentExceptionArgumentException | The text would result in a non-well formed XML document. name is either null or String.Empty. This method is being used to create an XML declaration after WriteStartDocumentWriteStartDocumentWriteStartDocument has already been called. |