Skip to content

decodeXml

Canonical path: o6.decodeXml

decodeXml

decodeXml(data, datatype)

Decode an XML-encoded OPC UA value.

Parameters:

Name Type Description Default
data bytes | str

The OPC UA XML representation to read.

required
datatype type[_NativeT]

The expected type.

required

Returns:

Type Description
_NativeT

The decoded value of type datatype.

Raises:

Type Description
StatusCodeError

data is not a valid encoding of datatype.