title: XMPPFramework - Retrieve Archived Messages From Openfire Server
body: <p>I am developing a chat app for iPhone using XMPP and openfire server,OpenFire server is storing all the chat history between users but When I try to retrieve the chat history for a particular user I get only the date and the number of chat messages but not the actual text messages</p>
  
  <p>I have already installed open archive plugin for message archiving on openfire</p>
  
  <p><strong>This is the stanza which I have passed to Openfire Server</strong> </p>
  
  <pre><code>    &lt;iq type='get' id='pk1'&gt;
      &lt;list xmlns='urn:xmpp:archive'
      with='piyush@openfire'&gt;
      &lt;set xmlns='http://jabber.org/protocol/rsm'&gt;
      &lt;max&gt;30&lt;/max&gt;
      &lt;/set&gt;
      &lt;/list&gt;
      &lt;/iq&gt;
  </code></pre>
  
  <p><strong>This is the result which I received from server</strong></p>
  
  <pre><code>  &lt;iq type="result" id="pk1" to="vivek@openfire/iphone"&gt;
    &lt;list xmlns="urn:xmpp:archive"&gt;
    &lt;chat with="piyush@openfire" start="2012-07-04T13:16:12.291Z"/&gt;
    &lt;chat with="piyush@openfire" start="2012-07-05T08:25:31.555Z"/&gt;
    &lt;chat with="piyush@openfire" start="2012-07-05T12:38:24.098Z"/&gt;
    &lt;set xmlns="http://jabber.org/protocol/rsm"&gt;
    &lt;first index="0"&gt;15&lt;/first&gt;
    &lt;last&gt;25&lt;/last&gt;
    &lt;count&gt;3&lt;/count&gt;
    &lt;/set&gt;
    &lt;/list&gt;
    &lt;/iq&gt;
  </code></pre>
  
  <p><strong>This is the result which I want and which I expected</strong></p>
  
  <pre><code> &lt;iq type='result' to='vivek@openfire/iphone' id='page1'&gt;
   &lt;chat xmlns='urn:xmpp:archive'
      with='piyush@openfire'
      start='2012-07-04T13:16:12.291Z'
      subject='She speaks!'
      version='4'&gt;
  &lt;from secs='0'&gt;&lt;body&gt;Art thou not Romeo, and a Montague?&lt;/body&gt;&lt;/from&gt;
  &lt;to secs='11'&gt;&lt;body&gt;Neither, fair saint, if either thee dislike.&lt;/body&gt;&lt;/to&gt;
  .
  [98 more messages]
  .
  &lt;from secs='9'&gt;&lt;body&gt;How cam'st thou hither, tell me, and wherefore?&lt;/body&gt;&lt;/from&gt;
  &lt;set xmlns='http://jabber.org/protocol/rsm'&gt;
    &lt;first index='0'&gt;0&lt;/first&gt;
    &lt;last&gt;99&lt;/last&gt;
    &lt;count&gt;217&lt;/count&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>Please Help me out to get the desired result</p>
  
  <p>Thanks</p>