UaNodeSet XML order of References list|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
UaNodeSet XML order of References list
Avatar
Sindre Hansen
New Member
Members
Forum Posts: 1
Member Since:
05/18/2018
sp_UserOfflineSmall Offline
1
08/09/2019 - 02:21
sp_Permalink sp_Print

Hello,

 

my application will parse an UaNodeSet file (XML) and somehow I need the order of the UAVariables for an UAObject (in this case: MDIS interlocks for an UAObject).

Can I assume that the order of "Reference"-elements within a "References" node is ordered in the XML file?

The schema (https://github.com/OPCFoundati.....t.xsd#L268) says "<xs:sequence>" for the list of "Reference"-elements, but I assume this does not say anything about the order for multiple elements with name "Reference".

Example:

<UAObject ...>

  ...

  <References>

    <Reference ReferenceType="HasInterlock">ns=1;i=1</a>

    <Reference ReferenceType="HasInterlock">ns=1;i=2</a>

  </References>

</UaObject>

 

Can I assume the order of References in the UaObject is "ns=1;i=1", "ns1;i=2"? Or can "Reference"-elements be in arbitrary order?

Avatar
Randy Armstrong
Admin
Forum Posts: 1472
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
08/09/2019 - 14:39
sp_Permalink sp_Print

You cannot make any assumption about the ordering of references in the NodeSet or when they are returned from the UA server.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1366
Posts: 4625