Skip to content

Commit

Permalink
Fix XML example
Browse files Browse the repository at this point in the history
  • Loading branch information
zerox1212 authored and oroulet committed Apr 24, 2017
1 parent d7061b2 commit 6be60fc
Showing 1 changed file with 80 additions and 75 deletions.
155 changes: 80 additions & 75 deletions example.xml
Original file line number Diff line number Diff line change
@@ -1,77 +1,82 @@
<?xml version="1.0" ?>
<?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">
<NamespaceUris>
<Uri>urn:freeopcua:python:server</Uri>
<Uri>urx:mycompany:myproject</Uri>
</NamespaceUris>
<Aliases>
<Alias Alias="HasComponent">ns=1;i=2004</Alias>
<Alias Alias="Float">i=10</Alias>
<Alias Alias="HasSubtype">i=58</Alias>
<Alias Alias="HasTypeDefinition">i=63</Alias>
<Alias Alias="String">i=12</Alias>
<Alias Alias="Organizes">i=85</Alias>
<Alias Alias="HasProperty">ns=1;i=2004</Alias>
</Aliases>
<UAObjectType BrowseName="1:MyDevice" IsAbstract="false" NodeId="ns=1;i=2001" ParentNodeId="i=58">
<DisplayName>MyDevice</DisplayName>
<References>
<Reference IsForward="false" ReferenceType="HasSubtype">i=58</Reference>
<Reference IsForward="true" ReferenceType="HasComponent">ns=1;i=2002</Reference>
</References>
</UAObjectType>
<UAObject BrowseName="0:obj1" NodeId="ns=1;i=2004" ParentNodeId="i=85">
<DisplayName>BaseObjectType</DisplayName>
<References>
<Reference IsForward="false" ReferenceType="Organizes">i=85</Reference>
<Reference IsForward="true" ReferenceType="HasTypeDefinition">i=58</Reference>
<Reference IsForward="true" ReferenceType="HasComponent">ns=1;i=2005</Reference>
<Reference IsForward="true" ReferenceType="HasProperty">ns=1;i=2006</Reference>
<Reference IsForward="true" ReferenceType="HasComponent">ns=1;i=2003</Reference>
</References>
</UAObject>
<UAVariable AccessLevel="0" BrowseName="1:var1" DataType="Float" NodeId="ns=1;i=2005" ParentNodeId="ns=1;i=2004" UserAccessLevel="0" ValueRank="-1">
<DisplayName>var1</DisplayName>
<Value>
<uax:Float>9.99</uax:Float>
</Value>
<References>
<Reference IsForward="false" ReferenceType="HasComponent">ns=1;i=2004</Reference>
<Reference IsForward="true" ReferenceType="HasTypeDefinition">i=63</Reference>
</References>
</UAVariable>
<UAVariable AccessLevel="0" BrowseName="1:myproperty" DataType="String" NodeId="ns=1;i=2006" ParentNodeId="ns=1;i=2004" UserAccessLevel="0" ValueRank="-1">
<DisplayName>MyProperty</DisplayName>
<Value>
<uax:String>property_value</uax:String>
</Value>
<References>
<Reference IsForward="false" ReferenceType="HasProperty">ns=1;i=2004</Reference>
<Reference IsForward="true" ReferenceType="HasTypeDefinition">i=68</Reference>
</References>
</UAVariable>
<UAVariable AccessLevel="0" BrowseName="1:DeviceName" DataType="String" NodeId="ns=1;i=2002" ParentNodeId="ns=1;i=2001" UserAccessLevel="0" ValueRank="-1">
<DisplayName>DeviceName</DisplayName>
<Value>
<uax:String>MyName</uax:String>
</Value>
<References>
<Reference IsForward="false" ReferenceType="HasComponent">ns=1;i=2001</Reference>
<Reference IsForward="true" ReferenceType="HasTypeDefinition">i=63</Reference>
</References>
</UAVariable>
<UAVariable BrowseName="1:varList" DataType="String" Description="b'varList'" NodeId="ns=1;i=2003" ParentNodeId="ns=1;i=2004" ValueRank="-1">
<DisplayName>varList</DisplayName>
<Value>
<uax:ListOfString>
<uax:String>en</uax:String>
<uax:String>to</uax:String>
<uax:String>tre</uax:String>
</uax:ListOfString>
</Value>
<References>
<Reference IsForward="false" ReferenceType="HasComponent">ns=1;i=2004</Reference>
<Reference IsForward="true" ReferenceType="HasTypeDefinition">i=63</Reference>
</References>
</UAVariable>
<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>

0 comments on commit 6be60fc

Please sign in to comment.