Page 1 of 1

UaExpandedNodeId::toXmlString() not OPC10000-6 compliant

Posted: 21 Aug 2020, 09:39
by wnuyts
Hi,

In version 1.7.2, the UaExpandedNodeId::toXmlString() function does not produce a string that is compliant with the format as specified in OPC10000-6, v1.04, section 5.3.1.11 (https://reference.opcfoundation.org/v104/Core/docs/Part6/5.3.1/#5.3.1.11)

Instead, the returned string seems to be the XML representation of only the NodeId part of the ExpandedNodeId, as specified here :https://reference.opcfoundation.org/v104/Core/docs/Part6/5.3.1/#5.3.1.10

Example code snippet to reproduce:

Code: Select all

UaExpandedNodeId expandedId(UaNodeId(123, 1), "http://myorganisation.com/UA/", 1);
UaString expandedIdStr = expandedId.toXmlString();
Expected contents of 'expandedId':

Code: Select all

svr=1;nsu=http://myorganisation.com/UA/;i=123
actual contents:

Code: Select all

ns=1;i=123
Thanks

Re: UaExpandedNodeId::toXmlString() not OPC10000-6 compliant

Posted: 08 Dec 2021, 15:49
by Support Team
This issue will be fixed in the upcoming 1.7.5 release.