<?xml version="1.0"?>
<!-- These are the examples for XSF XEP-0021: Jabber Event Notification Service (ENS)-->
<stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en"><!-- Example 1-->
<iq id='sub1' type='set' from='subscriber-jid' to='ens-jid'>
  <subscribe xmlns='http://xml.cataclysm.cx/jabber/ens/' jid='event-jid'/>
</iq>
    <!-- Example 2-->
<iq id='sub2' type='set' from='subscriber-jid' to='ens-jid'>
  <subscribe xmlns='http://xml.cataclysm.cx/jabber/ens/' jid='event-jid'>
    <auth-info xmlns='jabber:iq:auth'>password</auth-info>
  </subscribe>
</iq>
      <!-- Example 3-->
<iq id='sub2' type='set' from='subscriber-jid' to='ens-jid'>
  <subscribe xmlns='http://xml.cataclysm.cx/jabber/ens/' jid='event-jid'>
    <reliable/>
  </subscribe>
</iq>
      <!-- Example 4-->
<iq id='sub1' type='result' from='ens-jid' to='subscriber-jid'>
  <subscribed xmlns='http://xml.cataclysm.cx/jabber/ens/' jid='event-jid'/>
</iq>
    <!-- Example 5-->
<iq id='sub1' type='error' from='ens-jid' to='subscriber-jid'>
  <subscribe xmlns='http://xml.cataclysm.cx/jabber/ens/' jid='event-jid'/>
  <error code='401'>Unauthorized</error>
</iq>
    <!-- Example 6-->
<iq id='unsub1' type='set' from='subscriber-jid' to='ens-jid'>
  <unsubscribe xmlns='http://xml.cataclysm.cx/jabber/ens/' jid='event-jid'/>
</iq>
    <!-- Example 7-->
<iq id='unsub1' type='result' from='ens-jid' to='subscriber-jid'>
  <unsubscribed xmlns='http://xml.cataclysm.cx/jabber/ens/' jid='event-jid'/>
</iq>
    <!-- Example 8-->
<iq id='enspub1' type='set' from='ens-jid' to='subscriber-jid'>
  <publish xmlns='http://xml.cataclysm.cx/jabber/ens/' jid='event-jid'/>
</iq>
    <!-- Example 9-->
<iq id='enspub2' type='set' from='ens-jid' to='subscriber-jid'>
  <publish xmlns='http://xml.cataclysm.cx/jabber/ens/' jid='event-jid'>
    <xml-payload/>
  </publish>
</iq>
    <!-- Example 10-->
<iq id='enspub1' type='result' from='subscriber-jid' to='ens-jid'>
  <published xmlns='http://xml.cataclysm.cx/jabber/ens/'/>
</iq>
    <!-- Example 11-->
<iq id='pub1' type='set' from='event-jid' to='ens-jid'>
  <publish xmlns='http://xml.cataclysm.cx/jabber/ens/'/>
</iq>
    <!-- Example 12-->
<iq id='pub1' type='set' from='event-jid' to='ens-jid'>
  <publish xmlns='http://xml.cataclysm.cx/jabber/ens/'>
    <xml-payload/>
  </publish>
</iq>
    <!-- Example 13-->
<iq id='pub1' type='result' from='ens-jid' to='event-jid'>
  <published xmlns='http://xml.cataclysm.cx/jabber/ens/'/>
</iq>
    <!-- Example 14-->
<iq id='ensauth1' type='get' from='ens-jid' to='event-jid'>
  <authorise xmlns='http://xml.cataclysm.cx/jabber/ens/' jid='subscriber-jid'/>
</iq>
    <!-- Example 15-->
<iq id='ensauth1' type='get' from='ens-jid' to='event-jid'>
  <authorise xmlns='http://xml.cataclysm.cx/jabber/ens/' jid='subscriber-jid'>
    <auth-info xmlns='jabber:iq:auth'>password</auth-info>
  </authorise>
</iq>
    <!-- Example 16-->
<iq id='ensauth1' type='result' from='event-jid' to='ens-jid'>
  <authorised xmlns='http://xml.cataclysm.cx/jabber/ens/' jid='subscriber-jid'/>
</iq>
    <!-- Example 17-->
<iq id='ensauth1' type='error' from='event-jid' to='ens-jid'>
  <authorise xmlns='http://xml.cataclysm.cx/jabber/ens/' jid='subscriber-jid'/>
  <error code='401'>Unauthorized</error>
</iq>
    </stream>

