
04/01/2014

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

05/30/2017

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>
1 Guest(s)