Unable to Import Boiler NodeSet XML|OPC UA Companion Standards|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
Unable to Import Boiler NodeSet XML
Avatar
Shubhi Gogna Shubhi Gogna
Member
Members
Forum Posts: 27
Member Since:
04/01/2014
sp_UserOfflineSmall Offline
1
06/08/2022 - 02:23
sp_Permalink sp_Print

Hi Randy,

I am trying to Import Boiler NodeSet XML but it fails to due to Schema Violation. I downloaded from https://github.com/OPCFoundati.....deSet2.xml.

I observed that there is 'XmlSchemaUri' Attribute present in RequiredModels entry but as per Schema (https://github.com/OPCFoundati.....odeSet.xsd) this field is not present for Models.

Please see below:

Boiler NodeSet File:

<Models>
<Model ModelUri="https://opcfoundation.org/UA/Boiler/">
<RequiredModel ModelUri="https://opcfoundation.org/UA/" XmlSchemaUri="https://opcfoundation.org/UA/2008/02/Types.xsd" Version="1.04.10" PublicationDate="2021-09-15T00:00:00Z" />
</Model>
</Models>

As per Schema, I see XMLSchemaUri is not present as field for RequiredModels:

<xs:complexType name="ModelTableEntry">
<xs:sequence>
<xs:element name="RolePermissions" type="ListOfRolePermissions" minOccurs="0" />
<xs:element name="RequiredModel" type="ModelTableEntry" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="ModelUri" type="xs:string" use="required" />
<xs:attribute name="Version" type="xs:string" />
<xs:attribute name="PublicationDate" type="xs:dateTime" />
<xs:attribute name="AccessRestrictions" type="AccessRestriction" default="0" />
</xs:complexType>

Can you please let us know if the entry for XMLSchemaUri correct in Boiler NodeSet or is it a problem in NodeSetFile.

Regards,

Shubhi Gogna

Avatar
Randy Armstrong
Admin
Forum Posts: 1438
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
06/08/2022 - 18:27
sp_Permalink sp_Print

You need to use the latest schema file:

https://github.com/OPCFoundati.....odeSet.xsd

<xs:complexType name="ModelTableEntry">
<xs:sequence>
<xs:element name="RolePermissions" type="ListOfRolePermissions" minOccurs="0" />
<xs:element name="RequiredModel" type="ModelTableEntry" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="ModelUri" type="xs:string" use="required" />
<xs:attribute name="XmlSchemaUri" type="xs:string" use="optional" />
<xs:attribute name="Version" type="xs:string" />
<xs:attribute name="PublicationDate" type="xs:dateTime" />
<xs:attribute name="AccessRestrictions" type="AccessRestriction" default="0" />
</xs:complexType>

<xs:complexType name="ModelTable">
<xs:sequence>
<xs:element name="Model" type="ModelTableEntry" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>

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