Dynamic (Object and ObjectType) nodes using xml schema

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
jack_thomas
Hero Member
Hero Member
Posts: 32
Joined: 02 Sep 2016, 16:14

Dynamic (Object and ObjectType) nodes using xml schema

Post by jack_thomas »

Hello,

In my educational prototype project I have used C# code to create custome ObjectType nodes and Object nodes(by instantiating ObjectType nodes).
I realized that it is a lot of code difficult to extend and to maintain. Is there any way you can suggest creating Object and ObjectType nodes using xml file so that for creating and managing nodes will be sophisticated?

Thanks,
Jack
Thanks and best regards,
Jack

User avatar
Support Team
Hero Member
Hero Member
Posts: 3073
Joined: 18 Mar 2011, 15:09

Re: Dynamic (Object and ObjectType) nodes using xml schema

Post by Support Team »

Hello Jack,

You can load NodeSet2 XML files (schema http://opcfoundation.org/UA/2011/03/UANodeSet.xsd) that contains the nodes for types and instances. UaModeler supports this file format. Here all nodes including all attributes and references are described for a model.
Alternatively you can create an own XML format which contains only the information needed for describing types and instances.In this case you need to parse the XML file and call CreateObject with the parsed data.
Best regards
Unified Automation Support Team

Post Reply