加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
example.xml 3.50 KB
一键复制 编辑 原始数据 按行查看 历史
zerox1212 提交于 2017-04-13 10:51 . Fix XML example
<?xml version='1.0' encoding='utf-8'?>
<UANodeSet xmlns="http://opcfoundation.org/UA/2011/03/UANodeSet.xsd" xmlns:uax="http://opcfoundation.org/UA/2008/02/Types.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Aliases>
<Alias Alias="HasTypeDefinition">i=40</Alias>
<Alias Alias="HasSubtype">i=45</Alias>
<Alias Alias="HasProperty">i=46</Alias>
<Alias Alias="HasComponent">i=47</Alias>
<Alias Alias="Organizes">i=35</Alias>
<Alias Alias="Float">i=10</Alias>
<Alias Alias="String">i=12</Alias>
</Aliases>
<NamespaceUris>
<Uri>urx:mycompany:myproject</Uri>
</NamespaceUris>
<UAObjectType BrowseName="1:MyDevice" NodeId="ns=1;i=2001">
<DisplayName>MyDevice</DisplayName>
<Description>MyDevice</Description>
<References>
<Reference IsForward="false" ReferenceType="HasSubtype">i=58</Reference>
<Reference ReferenceType="HasComponent">ns=1;i=2005</Reference>
</References>
</UAObjectType>
<UAObject BrowseName="1:obj1" NodeId="ns=1;i=2002" ParentNodeId="i=85">
<DisplayName>BaseObjectType</DisplayName>
<Description>The base type for all object nodes.</Description>
<References>
<Reference IsForward="false" ReferenceType="Organizes">i=85</Reference>
<Reference ReferenceType="HasTypeDefinition">i=58</Reference>
<Reference ReferenceType="HasComponent">ns=1;i=2003</Reference>
<Reference ReferenceType="HasProperty">ns=1;i=2004</Reference>
<Reference ReferenceType="HasComponent">ns=1;i=2006</Reference>
</References>
</UAObject>
<UAVariable BrowseName="1:var1" DataType="Float" NodeId="ns=1;i=2003" ParentNodeId="ns=1;i=2002">
<DisplayName>var1</DisplayName>
<Description>var1</Description>
<Value>
<uax:Float>9.99</uax:Float>
</Value>
<References>
<Reference IsForward="false" ReferenceType="HasComponent">ns=1;i=2002</Reference>
<Reference ReferenceType="HasTypeDefinition">i=63</Reference>
</References>
</UAVariable>
<UAVariable BrowseName="1:myproperty" DataType="String" NodeId="ns=1;i=2004" ParentNodeId="ns=1;i=2002">
<DisplayName>myproperty</DisplayName>
<Description>myproperty</Description>
<Value>
<uax:String>property_value</uax:String>
</Value>
<References>
<Reference IsForward="false" ReferenceType="HasProperty">ns=1;i=2002</Reference>
<Reference ReferenceType="HasTypeDefinition">i=68</Reference>
</References>
</UAVariable>
<UAVariable BrowseName="1:DeviceName" DataType="String" NodeId="ns=1;i=2005" ParentNodeId="ns=1;i=2001">
<DisplayName>DeviceName</DisplayName>
<Description>DeviceName</Description>
<Value>
<uax:String>MyName</uax:String>
</Value>
<References>
<Reference IsForward="false" ReferenceType="HasComponent">ns=1;i=2001</Reference>
<Reference ReferenceType="HasTypeDefinition">i=63</Reference>
</References>
</UAVariable>
<UAVariable ArrayDimensions="3" BrowseName="1:varList" DataType="String" NodeId="ns=1;i=2006" ParentNodeId="ns=1;i=2002">
<DisplayName>varList</DisplayName>
<Description>varList</Description>
<Value>
<uax:ListOfString>
<uax:String>one</uax:String>
<uax:String>two</uax:String>
<uax:String>three</uax:String>
</uax:ListOfString>
</Value>
<References>
<Reference IsForward="false" ReferenceType="HasComponent">ns=1;i=2002</Reference>
<Reference ReferenceType="HasTypeDefinition">i=63</Reference>
</References>
</UAVariable>
</UANodeSet>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化