From 0b2682d87165c318e1d8ca30d58a950994a42bad Mon Sep 17 00:00:00 2001
From: ankraft <an.kraft@googlemail.com>
Date: Wed, 9 Sep 2015 14:21:59 +0200
Subject: [PATCH] - Changed example test files accordingly

---
 SDT/schema3.0/test/dal-core.xml | 10 +++--
 SDT/schema3.0/test/dal-eg.xml   | 15 +++++--
 SDT/schema3.0/test/mseeb.xml    | 71 +++++++++++++++++++++++----------
 3 files changed, 67 insertions(+), 29 deletions(-)

diff --git a/SDT/schema3.0/test/dal-core.xml b/SDT/schema3.0/test/dal-core.xml
index 513013f..729a4ca 100644
--- a/SDT/schema3.0/test/dal-core.xml
+++ b/SDT/schema3.0/test/dal-core.xml
@@ -19,10 +19,12 @@
 				</Action>
 				<Action name="setTarget">
 					<Doc>Set the associated state to the specified value.</Doc>
-					<Arg name="value">
-						<Doc>The desired value of the associated state.</Doc>
-						<SimpleType type="boolean" />
-					</Arg>
+					<Args>
+						<Arg name="value">
+							<Doc>The desired value of the associated state.</Doc>
+							<SimpleType type="boolean" />
+						</Arg>
+					</Args>
 				</Action>
 			</Actions>
 		</ModuleClass>
diff --git a/SDT/schema3.0/test/dal-eg.xml b/SDT/schema3.0/test/dal-eg.xml
index e609e56..fe3b9a5 100644
--- a/SDT/schema3.0/test/dal-eg.xml
+++ b/SDT/schema3.0/test/dal-eg.xml
@@ -22,11 +22,18 @@
 	<tt>on</tt> and <tt>off</tt>. This is clearly a candidate for the 
 	module class <tt>BooleanState</tt>.
       </Doc>
-      <DeviceInfo>
-		<Name>PowerSwitch</Name>
+      <DeviceInfos>
+      	<DeviceInfo name="Name">
+		  <Doc>Original value: PowerSwitch</Doc>
+		  <SimpleType type="string" />
+		</DeviceInfo>
+
 		<!-- The Vendor field should probably be part of the domain -->
-		<Vendor>Telekom Innovation Laboratories</Vendor>
-      </DeviceInfo>
+      	<DeviceInfo name="Vendor">
+      	  <Doc>Original value: Telekom Innovation Laboratories</Doc>
+		  <SimpleType type="string" />
+		</DeviceInfo>
+      </DeviceInfos>
 
       <Modules>
 	<Module name="proprietaryPower">
diff --git a/SDT/schema3.0/test/mseeb.xml b/SDT/schema3.0/test/mseeb.xml
index 8253c23..8402b93 100644
--- a/SDT/schema3.0/test/mseeb.xml
+++ b/SDT/schema3.0/test/mseeb.xml
@@ -87,12 +87,14 @@
                     <Doc>
                         Set the associated state to the specified value.
                     </Doc>
-                    <Arg name="value">
-                        <Doc>
-                        The desired value of the associated state.
-                        </Doc>
-                        <SimpleType type="boolean" />
-                    </Arg>
+                    <Args>
+                        <Arg name="value">
+                            <Doc>
+                            The desired value of the associated state.
+                            </Doc>
+                            <SimpleType type="boolean" />
+                        </Arg>
+                    </Args>
                 </Action>
           </Actions>
           <Events>
@@ -117,13 +119,28 @@
             <Doc>
                 This device is intended as a demonstration of how to define a Root Device with multiple sub-devices.
             </Doc>
-            <DeviceInfo>
-                <Name>Multi Socket Electrical-Extension-Block</Name>
-                <Vendor>HGI</Vendor>
-                <FirmwareVersion>1.0</FirmwareVersion>
-                <VendorURL>http://www.homegatewayinitative.org</VendorURL>
-                <SerialNumber>1234.5</SerialNumber>
-            </DeviceInfo>
+            <DeviceInfos>
+                <DeviceInfo name="Name">
+                    <Doc>Original value: Multi Socket Electrical-Extension-Block</Doc>
+                    <SimpleType type="string" />
+                </DeviceInfo>
+                <DeviceInfo name="Vendor">
+                    <Doc>Original value: HGI</Doc>
+                    <SimpleType type="string" />
+                </DeviceInfo>
+                <DeviceInfo name="FirmwareVersion">
+                  <Doc>Original value: 1.0</Doc>
+                  <SimpleType type="string" />
+                </DeviceInfo>
+                <DeviceInfo name="VendorURL">
+                  <Doc>Original value: http://www.homegatewayinitative.org</Doc>
+                  <SimpleType type="uri" />
+                </DeviceInfo>
+                <DeviceInfo name="SerialNumber">
+                  <Doc>Original value: 1234.5</Doc>
+                  <SimpleType type="string" />
+                </DeviceInfo>
+            </DeviceInfos>
 
 <!-- These are the modules for the device:
     - Switch on/off all contained switches. It inherits from hgi.dal.core.BooleanState.
@@ -188,10 +205,16 @@
                     <Doc>
                         This sub device is intended as a demonstration of how to use the abstract modules defined in the <em>HGI Core</em> domain.
                     </Doc>
-                    <DeviceInfo>
-                        <Name>PowerSwitch 1</Name>
-                        <Vendor>HGI</Vendor>
-                    </DeviceInfo>
+                    <DeviceInfos>
+                        <DeviceInfo name="Name">
+                            <Doc>Original value: PowerSwitch 1</Doc>
+                            <SimpleType type="string" />
+                        </DeviceInfo>
+                        <DeviceInfo name="Vendor">
+                            <Doc>Original value: HGI</Doc>
+                            <SimpleType type="string" />
+                        </DeviceInfo>
+                    </DeviceInfos>
                     <Modules>
                         <Module name="power">
                             <extends domain="hgi.dal.core" class="BooleanState"/>
@@ -205,10 +228,16 @@
                     <Doc>
                         This sub device is intended as a demonstration of how to use the abstract modules defined in the <em>HGI Core</em> domain.
                     </Doc>
-                    <DeviceInfo>
-                        <Name>PowerSwitch 2</Name>
-                        <Vendor>HGI</Vendor>
-                    </DeviceInfo>
+                    <DeviceInfos>
+                        <DeviceInfo name="Name">
+                            <Doc>Original value: PowerSwitch 2</Doc>
+                            <SimpleType type="string" />
+                        </DeviceInfo>
+                        <DeviceInfo name="Vendor">
+                            <Doc>Original value: HGI</Doc>
+                            <SimpleType type="string" />
+                        </DeviceInfo>
+                    </DeviceInfos>
                     <Modules>
                         <Module name="power">
                             <extends domain="hgi.dal.core" class="BooleanState"/>
-- 
GitLab