Tuesday, 8 July 2014

wsr macros else if statement in XML



i am trying to create a macro for WSR where it takes the input of restarting system and confirms it by asking yes or no? Then if yes the macro restarts the system if no it just replies back canceling operation. So far this is what i have...



<speechMacros>
<command>
<listenFor>Restart the System</listenFor>
<speak>Confirm system restart. yes or no?</speak>
</command>
<command>
<listenFor>[...]chester</listenFor>
<if [...]="yes">
<run command="C:\Windows\System32\shutdown.exe" params="-r -t 00"/>
<else[...]="no">
<speak>canceling operation</speak>
</else>
</if>
</command>
</speechMacros>


i tried but it gives me the error saying...


A name was started with an invalid character.


Line:9 Col:5



<if[...]="yes">


How do i fix this?


No comments:

Post a Comment