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();
Code: Select all
svr=1;nsu=http://myorganisation.com/UA/;i=123
Code: Select all
ns=1;i=123