encodeXml¶
Canonical path: o6.encodeXml
encodeXml
¶
Encode an OPC UA value with the XML encoding.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj
|
Any
|
One scalar value of a registered OPC UA type. |
required |
Returns:
| Type | Description |
|---|---|
bytes
|
The OPC UA XML representation of |
Raises:
| Type | Description |
|---|---|
TypeError
|
|
StatusCodeError
|
open62541 rejected the value. |