diff --git a/Gurux.DLMS.python/gurux_dlms/GXDLMSTranslator.py b/Gurux.DLMS.python/gurux_dlms/GXDLMSTranslator.py index e2f212f..f822ec0 100644 --- a/Gurux.DLMS.python/gurux_dlms/GXDLMSTranslator.py +++ b/Gurux.DLMS.python/gurux_dlms/GXDLMSTranslator.py @@ -1172,7 +1172,7 @@ def _pduToXml2( xml.endComment() except Exception: # It's OK if this fails. Ciphering settings are not correct. - xml.xml.setXmlLength(len_) + xml.setXmlLength(len_) value.position = originalPosition cnt = _GXCommon.getObjectCount(value) if cnt != len(value) - value.position: