We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load xml nodeset file has bug {BadDecodingError 'Could not resolve namespace uri: http://opcfoundation.org/UA/2011/03/UANodeSet.xsd'}
{BadDecodingError 'Could not resolve namespace uri: http://opcfoundation.org/UA/2011/03/UANodeSet.xsd'}
Inside public class MyNodeManager : CustomNodeManager2
public class MyNodeManager : CustomNodeManager2
protected override NodeStateCollection LoadPredefinedNodes(ISystemContext context) { var importedNodeStates = new NodeStateCollection(); FileStream fs = new FileStream("trumpf.signalbridge.ua4mt.xml", FileMode.Open); importedNodeStates.LoadFromXml(context, fs, true); return importedNodeStates; }
Load all nodes in xml nodeset file
No response
- OS:Windows 11 - Environment:VS 2022 17.11.5 - Runtime: .Net Core 6 - Nuget Version:1.4.372.76 - Component: Opc.Ua.Core
Nodeset xml file:
<?xml version="1.0" encoding="utf-8"?> <UANodeSet LastModified="2024-11-26T07:52:22.445Z" xmlns="http://opcfoundation.org/UA/2011/03/UANodeSet.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:uax="http://opcfoundation.org/UA/2008/02/Types.xsd" xmlns:si="http://www.siemens.com/OPCUA/2017/SimaticNodeSetExtensions" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <NamespaceUris> <Uri>http://abc</Uri> </NamespaceUris> <Models> <Model ModelUri="http://abc" PublicationDate="2024-11-26T15:48:49+08:00" Version="1.00"> <RequiredModel ModelUri="http://opcfoundation.org/UA/" PublicationDate="2021-09-15T00:00:00Z" Version="1.04.10"/> </Model> </Models> <Aliases> <Alias Alias="Boolean">i=1</Alias> <Alias Alias="DateTime">i=13</Alias> <Alias Alias="String">i=12</Alias> <Alias Alias="HasComponent">i=47</Alias> <Alias Alias="HasProperty">i=46</Alias> <Alias Alias="Organizes">i=35</Alias> <Alias Alias="HasTypeDefinition">i=40</Alias> </Aliases> <Extensions> <Extension> <si:Generator Product="SiOME" Edition="Standard" Version="2.8.8"/> </Extension> <Extension> <si:GeneratorExtension Hash="5871d63d7fd712b4d4d808825c0925e1"/> </Extension> </Extensions> <UAObject SymbolicName="http___abc" NodeId="ns=1;i=5000" BrowseName="1:http://abc" ParentNodeId="i=11715"> <DisplayName>http://abc</DisplayName> <References> <Reference ReferenceType="HasComponent" IsForward="false">i=11715</Reference> <Reference ReferenceType="HasTypeDefinition">i=11616</Reference> </References> </UAObject> <UAVariable DataType="Boolean" NodeId="ns=1;i=6000" BrowseName="IsNamespaceSubset" ParentNodeId="ns=1;i=5000"> <DisplayName>IsNamespaceSubset</DisplayName> <References> <Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=5000</Reference> <Reference ReferenceType="HasTypeDefinition">i=68</Reference> </References> </UAVariable> <UAVariable DataType="DateTime" NodeId="ns=1;i=6001" BrowseName="NamespacePublicationDate" ParentNodeId="ns=1;i=5000"> <DisplayName>NamespacePublicationDate</DisplayName> <References> <Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=5000</Reference> <Reference ReferenceType="HasTypeDefinition">i=68</Reference> </References> <Value> <uax:DateTime>2024-11-26T15:48:49+08:00</uax:DateTime> </Value> </UAVariable> <UAVariable DataType="String" NodeId="ns=1;i=6002" BrowseName="NamespaceUri" ParentNodeId="ns=1;i=5000"> <DisplayName>NamespaceUri</DisplayName> <References> <Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=5000</Reference> <Reference ReferenceType="HasTypeDefinition">i=68</Reference> </References> <Value> <uax:String>http://abc</uax:String> </Value> </UAVariable> <UAVariable DataType="String" NodeId="ns=1;i=6003" BrowseName="NamespaceVersion" ParentNodeId="ns=1;i=5000"> <DisplayName>NamespaceVersion</DisplayName> <References> <Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=5000</Reference> <Reference ReferenceType="HasTypeDefinition">i=68</Reference> </References> <Value> <uax:String>1.00</uax:String> </Value> </UAVariable> <UAVariable DataType="i=256" ValueRank="1" NodeId="ns=1;i=6004" BrowseName="StaticNodeIdTypes" ParentNodeId="ns=1;i=5000"> <DisplayName>StaticNodeIdTypes</DisplayName> <References> <Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=5000</Reference> <Reference ReferenceType="HasTypeDefinition">i=68</Reference> </References> </UAVariable> <UAVariable DataType="i=291" ValueRank="1" NodeId="ns=1;i=6005" BrowseName="StaticNumericNodeIdRange" ParentNodeId="ns=1;i=5000"> <DisplayName>StaticNumericNodeIdRange</DisplayName> <References> <Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=5000</Reference> <Reference ReferenceType="HasTypeDefinition">i=68</Reference> </References> </UAVariable> <UAVariable DataType="String" NodeId="ns=1;i=6006" BrowseName="StaticStringNodeIdPattern" ParentNodeId="ns=1;i=5000"> <DisplayName>StaticStringNodeIdPattern</DisplayName> <References> <Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=5000</Reference> <Reference ReferenceType="HasTypeDefinition">i=68</Reference> </References> </UAVariable> <UAVariable DataType="i=96" ValueRank="1" NodeId="ns=1;i=6007" BrowseName="DefaultRolePermissions" ParentNodeId="ns=1;i=5000"> <DisplayName>DefaultRolePermissions</DisplayName> <References> <Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=5000</Reference> <Reference ReferenceType="HasTypeDefinition">i=68</Reference> </References> </UAVariable> <UAVariable DataType="i=95" NodeId="ns=1;i=6008" BrowseName="DefaultAccessRestrictions" ParentNodeId="ns=1;i=5000"> <DisplayName>DefaultAccessRestrictions</DisplayName> <References> <Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=5000</Reference> <Reference ReferenceType="HasTypeDefinition">i=68</Reference> </References> </UAVariable> <UAObject NodeId="ns=1;i=5001" BrowseName="1:umat" ParentNodeId="i=85"> <DisplayName>umat</DisplayName> <References> <Reference ReferenceType="Organizes" IsForward="false">i=85</Reference> <Reference ReferenceType="HasTypeDefinition">i=61</Reference> </References> </UAObject> <UAObject NodeId="ns=1;i=5002" BrowseName="1:Status" ParentNodeId="ns=1;i=5001"> <DisplayName>Status</DisplayName> <References> <Reference ReferenceType="Organizes" IsForward="false">ns=1;i=5001</Reference> <Reference ReferenceType="HasTypeDefinition">i=58</Reference> </References> </UAObject> <UAVariable DataType="Boolean" NodeId="ns=1;i=6009" BrowseName="1:Running" ParentNodeId="ns=1;i=5002" UserAccessLevel="3" AccessLevel="3"> <DisplayName>Running</DisplayName> <References> <Reference ReferenceType="HasComponent" IsForward="false">ns=1;i=5002</Reference> <Reference ReferenceType="HasTypeDefinition">i=63</Reference> </References> </UAVariable> <UAVariable DataType="Boolean" NodeId="ns=1;i=6010" BrowseName="1:Stopped" ParentNodeId="ns=1;i=5002" UserAccessLevel="3" AccessLevel="3"> <DisplayName>Stopped</DisplayName> <References> <Reference ReferenceType="HasComponent" IsForward="false">ns=1;i=5002</Reference> <Reference ReferenceType="HasTypeDefinition">i=63</Reference> </References> </UAVariable> </UANodeSet>
The text was updated successfully, but these errors were encountered:
EthanChangAED
No branches or pull requests
Type of issue
Current Behavior
Load xml nodeset file has bug
{BadDecodingError 'Could not resolve namespace uri: http://opcfoundation.org/UA/2011/03/UANodeSet.xsd'}
Inside
public class MyNodeManager : CustomNodeManager2
Expected Behavior
Load all nodes in xml nodeset file
Steps To Reproduce
No response
Environment
Anything else?
Nodeset xml file:
The text was updated successfully, but these errors were encountered: