Small Example (Registration Server Protocol)

<?xml version="1.0" ?>
<xfer>
<namespace name="xregister"/>

<version major="2" minor="1" />

<const type="integer"> <value name="lifetime_forever">-1</value> </const>

<subclasses>

<!-- registration entry -->
<class type="entry_t">
  <!-- name of process -->
  <item-of type="string" name="proc"/> 
  <!-- node process is running on  -->
  <item-of type="integer" name="node"/> 
  <!-- process id of process -->
  <item-of type="integer" name="pid"/>
  <!-- tcp port process is listening to -->
  <item-of type="integer" name="tcpport"/>
  <!-- udp port process is listening to -->
  <item-of type="integer" name="udpport"/>
  <!-- host name process is running on -->
  <item-of type="string" name="host"/>
  <!-- ip adress of process' host -->
  <item-of type="string" name="ip"/>
  <!-- registration time of process -->
  <item-of type="integer" name="t"/>
</class>

<class type="notify_t">
  <item-of type="integer" name="id"/>
  <item-of type="string"  name="reference"/>
  <list-of type="entry_t" name="e" />
</class>

<class type="subscribe_t">
  <item-of type="integer" name="node"/>
  <item-of type="string"  name="proc"/>
  <item-of type="integer" name="lifetime"/>
</class>

<class type="registration_t">
  <item-of type="entry_t" name="entry"/>
</class>


<union type="msg_u">
  <item-of type="subscribe_t" name="sub"/>
  <item-of type="notify_t"    name="notify"/>
  <item-of type="registration_t"  name="registration"/>
</union>


</subclasses>

<class type="service_t">
  <item-of type="msg_u" name="msg"/>
</class>


</xfer>


Generated on 4 Mar 2014 for xfergen by  doxygen 1.4.7