## XmlDocument::CreateProcessingInstruction method


Creates an [XmlProcessingInstruction](../../xmlprocessinginstruction/) with the specified name and data.

```cpp
virtual SharedPtr<XmlProcessingInstruction> System::Xml::XmlDocument::CreateProcessingInstruction(const String &target, const String &data)
```


| Parameter | Type | Description |
| --- | --- | --- |
| target | const String\& | The name of the processing instruction. |
| data | const String\& | The data for the processing instruction. |

### ReturnValue

The new [XmlProcessingInstruction](../../xmlprocessinginstruction/).

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlProcessingInstruction](../../xmlprocessinginstruction/)
* Class [String](../../../system/string/)
* Class [XmlDocument](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
