<?xml version="1.0"?>
<!-- These are the examples for XSF XEP-0039: Statistics Gathering-->
<stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en"><!-- Example 1-->
      send:     <iq type='get' to='component'>
	          <query xmlns='http://jabber.org/protocol/stats'/>
                </iq>
      

      recv:     <iq type='result' from='component'>
                  <query xmlns='http://jabber.org/protocol/stats'>
	            <stat name='time/uptime'/>
	            <stat name='users/online'/>
	                  .
	                  .
	                  .
	            <stat name='bandwidth/packets-in'/>
	            <stat name='bandwidth/packets-out'/>
	          </query>
                </iq>
      <!-- Example 2-->
      send:     <iq type='get' to='component'>
                  <query xmlns='http://jabber.org/protocol/stats'>
	            <stat name='time/uptime'/>
	            <stat name='users/online'/>
	            <stat name='bandwidth/packets-in'/>
	            <stat name='bandwidth/packets-out'/>
	          </query>
                </iq>


      recv:     <iq type='result' from='component'>
                  <query xmlns='http://jabber.org/protocol/stats'>
                    <stat name='time/uptime' units='seconds'	value='3054635'/>
	            <stat name='users/online' units='users' value='365'/>
	            <stat name='bandwidth/packets-in' units='packets' value='23434'/> 
	            <stat name='bandwidth/packets-out' units='packets' value='23422'/>      
                  </query>
                </iq>
      <!-- Example 3-->
        <iq type='error' from='component'> 
          <query xmlns='http://jabber.org/protocol/stats'>  
            <error code='401'>Not Authorized</error>
          </query>
        </iq>
      <!-- Example 4-->
        <iq type='result' from='component'>
          <query xmlns='http://jabber.org/protocol/stats'>
            <stat name='time/uptime units='seconds' value='4534'/>
	    <stat name='bandwidth/packets-in'><error code='503'>Service Unavailable</error></stat>
            <stat name='bandwidth/packets-out'><error code='503'>Service Unavailable</error></stat>
          </query>
        </iq>
      </stream>

