## XmlWriter::WriteElementString(const String\&, const String\&) method


Writes an element with the specified local name and value.

```cpp
void System::Xml::XmlWriter::WriteElementString(const String &localName, const String &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| localName | const String\& | The local name of the element. |
| value | const String\& | The value of the element. |

## See Also

* Class [String](../../../system/string/)
* Class [XmlWriter](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlWriter::WriteElementString(const String\&, const String\&, const String\&) method


Writes an element with the specified local name, namespace URI, and value.

```cpp
void System::Xml::XmlWriter::WriteElementString(const String &localName, const String &ns, const String &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| localName | const String\& | The local name of the element. |
| ns | const String\& | The namespace URI to associate with the element. |
| value | const String\& | The value of the element. |

## See Also

* Class [String](../../../system/string/)
* Class [XmlWriter](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlWriter::WriteElementString(const String\&, const String\&, const String\&, const String\&) method


Writes an element with the specified prefix, local name, namespace URI, and value.

```cpp
void System::Xml::XmlWriter::WriteElementString(const String &prefix, const String &localName, const String &ns, const String &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| prefix | const String\& | The prefix of the element. |
| localName | const String\& | The local name of the element. |
| ns | const String\& | The namespace URI of the element. |
| value | const String\& | The value of the element. |

## See Also

* Class [String](../../../system/string/)
* Class [XmlWriter](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
