# XmlElement

## class XmlElement(text)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object "(in Python v3.15)")

XML text carried as an OPC UA XmlElement.

Parameters:
:   **text** ([*str*](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)"))

    XML text to retain.

Examples

```
>>> str(XmlElement("<mode>on</mode>"))
'<mode>on</mode>'
```
