How to get archived messages?

How to get archived messages?

All right staff, I would like to know how to recover the last 10 user message.

As is the XML format should I send?

If anyone knows the Strophe.js help me further.

Thank you.