Nodeset file default values, is prefix "uax:" mandatory?|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
Nodeset file default values, is prefix "uax:" mandatory?
Avatar
Martin Lang
Germany
Member
Members
Forum Posts: 72
Member Since:
06/25/2014
sp_UserOfflineSmall Offline
1
10/14/2021 - 04:27
sp_Permalink sp_Print

What is correct according the official schema xsd for default value in a Nodeset XML?

<Value>
   <uax:Byte>0</uax:Byte>
</Value>

or w/o uax:

<Value>
   <Byte>0</uax:Byte>
</Value>

tia.

Avatar
Randy Armstrong
Admin
Forum Posts: 1451
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
10/14/2021 - 05:17
sp_Permalink sp_Print sp_EditHistory

We added some clarifications in 1.05:

Every UANodeSet that defines DataTypes has associated schema files that define how to serialize the DataTypes using the UA Binary Encoding (5.2) and the UA XML Encoding (5.3). The XML schema file may be referenced by the UANodeSet if it includes Variable Values (F.8) for one or more of the DataTypes defined in the UANodeSet. The namespace URI assigned to the XML schema is set by the tool that generated it. The URI for the XML schema for OPC UA DataTypes is https://opcfoundation.org/UA/20...../Types.xsd.

IOW, the elements in the DefaultValue value always use a different URI than the UANodeSet schema URI.

Any prefix can be used but uax: is what the tooling currently uses.

Note that serializing Structures of DataTypes defined in non-UA namespaces would reference a different schema and require a different prefix assigned in the XML file.

The XML schema for a NodeSet is usually published as a separate file but it is also the value of a Property of the DataTypeDictionary Node for the XML Type System that is part of any 1.04 or earlier NodeSet.

In 1.05 or later a new XmlSchemaUri will be added to the UANodeSet element.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online: Phuong Nguyen, Mikael Fridholm, Martin Keane, Danushka Chathuranga
Guest(s) 25
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1350
Posts: 4578