I'm not sure how you generated that code, but it is not valid xml. You can copy code directly from your command tree. see here:
http://voxcommando.com/mediawiki/index.php?title=XML_on_the_forumActually I wanted to know what code you were using in EventGhost. You can do the same thing. Right click your macro in EventGhost and choose copy. Then paste it into a code box on the forum.
I think the problem might be the port that you are sending to. By default VC listens to udp commands on port 33000 so your EventGhost macro must use this port.
from VC to EventGhost uses UDP port 33333
from EventGhost to VC uses UDP port 33000
You can verify these values on the VC Options page on the advanced tab.
This is different from TCP where a single port can be used in both directions.
So for example, let's say I want to set my variable 'thingy' to a value of 1:
Here is the macro to use in EventGhost (you can copy and paste this to your EventGhost tree):
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1572">
<Macro Name="Broadcaster: Broadcast: Results.SetVar" Expanded="True">
<Action>
BroadcastListener.Broadcast(u'Results.SetVar', u'thingy&&1', 33000)
</Action>
</Macro>
</EventGhost>
and to test this variable in VC we can use this command (you can copy and paste this to your VoxCommando tree):
<?xml version="1.0" encoding="utf-16"?>
<command id="246" name="show thingy" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>OSD.ShowText</cmdType>
<cmdString>{Var.thingy}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>show thingy</phrase>
</command>
It is probably sufficient to just use the variables, but if you want to remember values even after VC is closed and restarted you can either store them in a text file, or use Maps (which I consider the preferred method).